Error in mySQL Statements with columnnames like "from" or "char"
The mySQL Statements must be escaped with `columnname`
SQLSTATE42000: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from VARCHAR DEFAULT NULL, PRIMARY KEY) ENGIN' at line 1
Updated by Karsten Dambekalns over 9 years ago
- Category set to Persistence
- Status changed from New to Rejected
- Assignee set to Karsten Dambekalns
- Priority changed from Must have to Won't have this time
As per the recommendations in Doctrine 2, no automatic quoting is done. You are advised to not use reserved words as column names. If needed you can add a
Column annotation and provide a different column name for a property.