Replies: 2 comments 3 replies
-
Sequel does not support multiple statements in the same query (as a general rule across adapters). Some drivers may support it, but in that case, results are undefined. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I know you said that the results are undefined. But is it possible that Sequel could return the result for the first query before the second is even executed? Or is there a guarantee that at least all queries will be executed before a result is returned? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@jeremyevans I don't know if this is an appropriate place to ask this question. I don't know if this behaviour is because of the Snowflake driver or the Sequel GEM. My apologies if it is not related to the Sequel GEM.
According to this Snowflake doc: https://docs.snowflake.com/en/developer-guide/odbc/odbc-using you can execute multiple statements together by doing the following:
First you need to alter the session to set
MULTI_STATEMENT_COUNT = 0
Then you can execute multiple statements in a single request:
The really odd thing is that the result of the first query is being returned. I was expecting to get the result of the last query as the output.
Beta Was this translation helpful? Give feedback.
All reactions