-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Column names starting with "not" #14641
Comments
Let's investigate this bug in the current sprint. If we can fix it easily in Zephir we do it in 4.0.x if work is required in the PHQL parser we move this to 4.1.x |
I can confirm that this issue is related to the PHQL parser.
Gonna move this to 4.1. |
in given example, modifying to this should work: SELECT [notifications] FROM Objects. Just add square brackets around column name starting with 'not' |
The same problem with 'end' in a column name:
|
Phalcon 5, the same problem. Any news? |
Guys, any news about this problem? |
Can you try enclosing your field in I remember we talked about this years ago and the decision was made not to change the parser because it has to identify the I believe there is a note in the docs about reserved words and fields and that one should enclose the field in Can you try and let us know please? |
Hi @niden I can confirm |
I am going to close this issue. This is part of the parser and it is near impossible to fix because we cannot predict the names of fields in the database and distinguish those with the As per the docs, one can enclose their field in |
Describe the bug
When a column name starts with the string "not", then Phalcon throws en error like this one:
To Reproduce
Expected behavior
To be able to access the column with its original name, without any workarounds (listed above).
Details
The text was updated successfully, but these errors were encountered: