Replies: 1 comment
-
Errr I think it's a bug in my end. Sorry about that!!! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
@jackc When I use sql.DB to do an Exec() with the following queries it just works. However, switching to pgxpool I get all kinds of errors. (I was hoping it could be essentially a direct replacement with my existing code.) What am I doing wrong or how can I fix things? Or what is the better approach?
This errors with:
cannot insert multiple commands into a prepared statement
When I update the query to do each statement one at a time as follows:
The first query errors with
mismatched param and argument count
Looks like setting a break-point in extended_query_builder.go for
(eqb *ExtendedQueryBuilder) Build
shows that sd.ParamOIDs has len 0, but args has len 1 with an empty interface with []interface{interface{}}. Thus, the two lengths don't match. :/ Why does args have a length of 1 when passed nothing?Beta Was this translation helpful? Give feedback.
All reactions