-
Notifications
You must be signed in to change notification settings - Fork 2.3k
README: document DSN system var quoting rules (#405) #502
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
Conversation
Examples: | ||
* `autocommit=1`: `SET autocommit=0` | ||
* [`time_zone=%27Europe%2FParis%27`](https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html): `SET time_zone='Europe/Paris'` | ||
* [`tx_isolation=%27REPEATABLE-READ%27`](https://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_tx_isolation): `SET tx_isolation=REPEATABLE-READ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is not clear. Why are there quotes (%27
) in the DSN example, but not in the "translated" system var?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I'll fix that.
Fixed (following @julienschmidt review) and rebased. |
(which implies values of string variables must be wrapped with `%27`) | ||
|
||
Examples: | ||
* `autocommit=1`: `SET autocommit=0` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something is wrong here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups.
Improve documentation of quoting rules for system var values in DSN. go-sql-driver#405
Fixed (following @julienschmidt second review) and rebased. |
Thanks, the changes look fine to me now. |
Added myself to AUTHORS as requested. |
Thanks a lot! |
Documentation fix for #405: improve documentation of quoting rules for system var values in DSN.
Fixes #405