-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add all missing MariaDB keywords to the MySQL platform #2768
Conversation
As can be found in https://mariadb.com/kb/en/mariadb/reserved-words/.
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.
LGTM
@deeky666 can you check this? Do we have a way to test this properly?
Also see: https://jira.mariadb.org/browse/MDEV-13339 According to the MariaDV devs, |
@leofeyer sadly yes, although we don't have a platform for it yet |
We can do it in 3.*, bit quoting by default has issues with case
sensitivity handling on some engines.
…On 19 Jul 2017 12:36 PM, "Roel van Duijnhoven" ***@***.***> wrote:
@Ocramius <https://github.com/ocramius> Isn't it much simpler to simply
escape all column names in an upcoming version? I see there is already some
work done on that area: #1592
<#1592>. Better investment of time
than manually updating those keyword files I'd say.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2768 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAJakGL4kBOVyPE-m76keqDBdRsxCzHCks5sPdw8gaJpZM4OOCpS>
.
|
What if we simply make the quoting behaviour configurable per engine? We can then already land this in the next minor increment of this repo. For MySQL (and other engines that support this) we can remove the keywords altogether; and simply enable quoting for that engine |
It really is much simpler: we'll move to quoting-only for 3.x, not in 2.x
…On 21 Jul 2017 11:02, "Roel van Duijnhoven" ***@***.***> wrote:
What if we simply make the quoting behaviour configurable per engine? We
can then already land this in the next minor increment of this repo. For
MySQL (and other engines that support this) we can remove the keywords
altogether; and simply enable quoting for that engine
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2768 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAJakCVTFSN9d3PSVvY6jfzzgw2OOLFiks5sQGkVgaJpZM4OOCpS>
.
|
🚢 Thanks @roelvanduijnhoven! |
@Ocramius is it possible to merge this into the 2.5 branch too and release a 2.5.14 version? Currently it is not possible to use MariaDB 10.2.4 together with PHP 5.6 or 7.0 because doctrine/dbal 2.6 requires at least PHP 7.1. |
@ausi no, this is an improvement on the API. If you want to use a newer version of MariaDB, then upgrade also DBAL and consequently PHP. |
OK, thanks for checking! |
I just migrated, and it failed. Turns out the
Is this intended behaviour? Not sure if I should open an issue here. |
Manually fixed this in 4.4 LTS and it worked. Why not change the 4.4 globally? Any reason? |
@xcy7e what exactly are you referring to? |
Version 10.2.4 introduced
rows
as a keyword. As doctrine does not escape non-keyword column names; this breaks stuff. And thus this prevents us from upgrading to the lastest MariaDb version.You connect to MariaDb using the MySql connectors from Doctrine. Thus I think it would be wise to add the new keywords to this file.
I added all missing keywords from https://mariadb.com/kb/en/mariadb/reserved-words/ and resorted the table in this PR.