Home > Article > Backend Development > Why Am I Getting "panic: sql: expected 1 destination arguments in Scan, not ." When Scanning JSONB Data in PostgreSQL?
Scan Argument Mismatch in SQL Query Using QueryRow
While fetching records from a PostgreSQL table using db.QueryRow, you may encounter the error "panic: sql: expected 1 destination arguments in Scan, not
In the given example, you are fetching the data column, which has the type jsonb. The error arises because you attempt to scan the returned data into three destination arguments (m.Id, m.Type, and `m.
The above is the detailed content of Why Am I Getting "panic: sql: expected 1 destination arguments in Scan, not ." When Scanning JSONB Data in PostgreSQL?. For more information, please follow other related articles on the PHP Chinese website!