-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1524204: Session Variables passed as connection params are ignored #1173
Comments
hey, thanks for raising this ! so the if you're trying to use a session variable , which can be indeed be anything, can you please try specifying them per the documentation you linked; using the |
ah, nevermind, I see now what you're referring to - JDBC is already supporting this notation you mentioned. |
as you mentioned, the session variable indeed comes urlencoded
and thus never actually recognized as a session variable, by the server. As a workaround, please consider using the method mentioned previously while we work on this enhancement for the driver to be on par with the JDBC driver regarding this aspect. |
hopefully #1177 can address this. Thank you again for pointing this gap out ! |
Thanks for the quick response! |
fix PR is now merged and will be part of the next upcoming release |
released with gosnowflake v1.11.0 in July 2024 |
What version of GO driver are you using?
v1.7.2
What operating system and processor architecture are you using?
darwin/arm64
What version of GO are you using?
1.21.8
4.Server version:* E.g. 1.90.1
You may get the server version by running a query:
8.24.1
as per the docs https://docs.snowflake.com/en/sql-reference/session-variables
there should be a session variable named CUSTOMER_ID.
The issue is the $ is url encoded, so when parsing the config back from the url it is left url encoded, while it needs to be a $ sign.
ParseDSN should decode the parameter keys IMO.
The text was updated successfully, but these errors were encountered: