Skip to content

Commit

Permalink
[CR] GetPrimitive doesn't call pgxscan, use pgx directly there
Browse files Browse the repository at this point in the history
  • Loading branch information
arielshaqed committed Nov 25, 2020
1 parent 5743209 commit 3e63322
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions db/tx.go
Expand Up @@ -100,8 +100,6 @@ func (d *dbTx) GetPrimitive(dest interface{}, query string, args ...interface{})
row := d.tx.QueryRow(context.Background(), query, args...)
err := row.Scan(dest)
if errors.Is(err, pgx.ErrNoRows) {
// This err comes directly from pgx, not via scany, so *cannot* use
// pgxscan.NotFound.
log.Trace("SQL query returned no results")
return ErrNotFound
}
Expand Down

0 comments on commit 3e63322

Please sign in to comment.