This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello, I'm using MySQL 5.5.3 and have a table with a column named "Key". When I attempt to insert a record, MySQL barfs with an error similiar to:
From the SQL that is being generated, it seems that column names are not escaped. It looks like this:
When I use the MySQL tools, the statement looks as follows:
Any chance you can ensure that column names are escaped such that column names that matches reserved words do not cause failures? Thanks, Werner |
|
|
From experience, best to pick a different name. But you can set it here. Docs mention it may cause problems on databases other than SQL server.
|
|
|
To add to chadw's comment, the potential problem (the reason we don't set it by default) is that some databases treat quoted identifiers as case sensitive. I believe it is safe to set QuoteIdentifiers on MySQL unless the MySQL server is running on a Unix OS -- that is, I believe MySQL on Windows does not treat quoted identifiers as case-sensitive. If your MySQL server is running on Unix or Linux, you should still be fine if the casings match, but if not you may have to set up explicit mappings to the correctly cased names. |
|