You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no standard for placeholders in Go, it depends on the database driver. Currently pq passes the query directly to Postgres, which doesn't support the ? placeholders.
This gives error:
2013/10/20 11:08:32 error querying database: pq: syntax error at or near "OFFSET"
2013/10/20 11:08:32 http: panic serving 127.0.0.1:39992: runtime error: invalid memory address or nil pointer dereference
This works fine:
According to the doc in database/sql, "The args are for any placeholder parameters in the query." So I think LIMIT/OFFSET should also be supported.
The text was updated successfully, but these errors were encountered: