-
Notifications
You must be signed in to change notification settings - Fork 240
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
fix(mysql): quote database name in CREATE DATABASE statement #149
Conversation
In order to allow the full Unicode Basic Multilingual Plane in the database name, the name is now quoted in the CREATE DATABASE statement. Signed-off-by: Daniel Kraus <daniel.kraus@kubermatic.com>
a3c375f
to
fcdb022
Compare
Thank you for the contribution! Would you mind also fixing this for the other drivers as well? |
Sure @brandond, I will check the other drivers to see if we this fix is needed elsewhere. |
In order to allow the full Unicode Basic Multilingual Plane in the database name, the name is now quoted in the CREATE DATABASE statement Note that quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case. Signed-off-by: Daniel Kraus <daniel.kraus@kubermatic.com>
@brandond I added another commit to fix this for the PostgreSQL driver. However this also means that the database names for the PostgreSQL driver are now case-sensitive according to the official documentation:
Another thing I noticed while running the tests locally: The
|
Thanks! I take it the sqlite driver didn't need any changes?
That seems like a fair tradeoff; I'll make sure that is mentioned in the release notes.
Hmm, the logs suggest that it is - are you saying that it actually is not? Or that the |
Yes, the sqlite driver just works. Regarding CockroachDB: |
Is this still relevant? |
It is, but I have been reluctant to merge it because of the change in behavior for Postgres. |
In order to allow the full Unicode Basic Multilingual Plane,
the database name is now quoted in the CREATE DATABASE statement.
fixes #148