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
quoted words reserved by mysql #159
Conversation
Those files are automatically generated, so I would say that we should fix the building process and add quotes by default |
So, why some files have quoted columns some of the not? |
Hmm, so partition was introduced as reserved word in mysql 5.6 -- I tested with 5.5. I wouldn't have added it with such name just to avoid headaches with other applications. For that reason, wondering if should be renamed now as we don't have a stable release out with this column name. And yes, we should fix the tool generating the sql script for mysql to quote table and column names. That will be safe for future when other column names may become reserved. |
@adombrovsky have you seen sql creation scripts quoted? Checked just few, but none had quoted column names. We quote them inside Kamailio C code when we do operations. |
Daniel-Constantin Mierla writes:
Hmm, so partition was introduced as reserved word in mysql 5.6 -- I
tested with 5.5. I wouldn't have added it with such name just to avoid
headaches with other applications. For that reason, wondering if
should be renamed now as we don't have a stable release out with this
column name.
I would prefer possibility to add the quotes automatically, since
different words may be reserved in different db engines and things can
change from version to version as we have witnessed.
I have all my upgrade scripts done and would not like to see any more
changes in db schema.
…-- Juha
|
@miconda yes i've seen. For example this file has quoted columns
|
@adombrovsky that's an ims module and apparently the IMS devs pushed the sql script directly, not via db schema |
On 13/05/15 16:14, juha-h wrote:
I asked about the rename as life using other tools may become easier and Cheers, Daniel-Constantin Mierla |
Guys, i have found another bug related to the partition column. Take a look at this log from kamailio:
|
Closing this pull request, it will not be merged. The discussion will continue on the issue #160 |
Word partition is reserved by mysql. During the database creation this error appears: