Replies: 2 comments 1 reply
-
i played around with this a bit and i guess the "correct" solution would be:
with that said, is there a helper function maybe in |
Beta Was this translation helpful? Give feedback.
0 replies
-
spent some more time here, i found the recommendation at #1512 to use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
this is one of those "works in lib/pq does not work in pgx, what should i do" posts.
with
lib/pq
this works:this does not work with
pgx
, it sayscannot insert multiple commands into a prepared statement
if i switch the
DefaultQueryExecMode
toQueryExecModeSimpleProtocol
, then the query does not fail, but the results only contain10
, and not20
.(NOTE: this was just an example. a more typical use-case our users do is for example
SET TIMEZONE TO 'UTC'; select ...
)is there a way to make this work somehow?
(unfortunately i need the "standard" go
sql.Rows
structure at the end)Beta Was this translation helpful? Give feedback.
All reactions