We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a (multiple allowed):
Trying to save data to a table which has integers as column names while setting 'quoteIdentifiers' => true
'quoteIdentifiers' => true should quote ALL column names.
'quoteIdentifiers' => true wraps the column names only for string names.
The text was updated successfully, but these errors were encountered:
Its because of this method in IdentifierQuoter. Only string names are quoted:
protected function _quoteInsert($query) { list($table, $columns) = $query->clause('insert'); $table = $this->_driver->quoteIdentifier($table); foreach ($columns as &$column) { if (is_string($column)) { $column = $this->_driver->quoteIdentifier($column); } } $query->insert($columns)->into($table); }
Sorry, something went wrong.
Quote identifiers for numeric fields on insert queries.
394fcfc
Quote numeric column names as we would quote string column names. Refs #9391
Closing as a pull request is open now to fix this issue.
markstory
No branches or pull requests
This is a (multiple allowed):
What you did
Trying to save data to a table which has integers as column names while setting 'quoteIdentifiers' => true
Expected Behavior
'quoteIdentifiers' => true should quote ALL column names.
Actual Behavior
'quoteIdentifiers' => true wraps the column names only for string names.
The text was updated successfully, but these errors were encountered: