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

Reserved word Condition is not escaped on insert #6284

Open
whyte624 opened this issue Jan 30, 2024 · 0 comments
Open

Reserved word Condition is not escaped on insert #6284

whyte624 opened this issue Jan 30, 2024 · 0 comments

Comments

@whyte624
Copy link

Bug Report

Q A
Version 3.7.1

Summary

I had a table with column with name condition.
Migration generated correctly with quotes around word "condition".
Howerver, on insert there was an error.

An exception occurred while executing a query: SQLSTATE[42000]: 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 'condition, userId, managerId discr) VALUES (' at line 1"

Current behaviour

Error on insert.

How to reproduce

Create table with column condition. Try to insert with ORM or DBAL.

Expected behaviour

Column should be escaped properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants