-
-
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
Paginator QueryBuilder not escaping rowcount column #12950
Comments
Phalcon does not have build-in MSSQL dialect class. So most likely this is a new feature request for Incubator but not a Phalcon bug. |
I realize MSSQL isn't currently supported by phalcon but this fix is just to make the generated SQL more standards compliant and in fact it is already being done here https://github.com/phalcon/cphalcon/blob/master/phalcon/mvc/model.zep#L1135 I already have the dialect and adapter classes for sql server but this does not solve the issue I have posted above. I am just asking you add double quotes around |
Can you do PR with fix to 3.2.x branch? |
Fixed in the |
Expected and Actual Behavior
When using the paginator with a
GROUP BY
andHAVING
clause, the sql that is generated does not escape the aliased column and thus I am receiving a syntax error from my database (MSSQL 12.0). https://github.com/phalcon/cphalcon/blob/master/phalcon/paginator/adapter/querybuilder.zep#L228I would expect Line 228 to be
Details
3.2.0
)7.0.18-0ubuntu0.16.04.1
)The text was updated successfully, but these errors were encountered: