Skip to content
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

Quote identifiers for numeric fields on insert queries. #9395

Merged
merged 3 commits into from Sep 2, 2016
Merged

Conversation

markstory
Copy link
Member

Quote numeric column names as we would quote string column names.

Refs #9391

Quote numeric column names as we would quote string column names.

Refs #9391
@markstory markstory added this to the 3.3.3 milestone Sep 2, 2016
@markstory markstory added the ORM label Sep 2, 2016
$query->insert([123])
->into('articles')
->values([
123 => 'mark',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even if a column name is numeric shouldn't one use string '123' for it? It's silly to use integer to represent a column name IMO.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can update the test.

@markstory
Copy link
Member Author

I fixed all the whitespace related PHPCS errors in this pull request too.

@lorenzo lorenzo merged commit a9d42fd into master Sep 2, 2016
@lorenzo lorenzo deleted the issue-9391 branch September 2, 2016 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants