-
Notifications
You must be signed in to change notification settings - Fork 122
Fixes Issue #318 - SelectDecorator - subselect limit parameter not prefixed #329
Conversation
Looks like that was fixed by that #300 |
In PR #300, src/Sql/Platform/Mysql/SelectDecorator.php line 54 is this:
That code associates the Select's Then we return the name of the SQL parameter that will actually be returned from the generated query. That string value is missing the I've included unit tests to demonstrate the bug and would be happy to make a commit with the tests only so you can verify. |
Ah, got it sir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix makes sense.
ping @webimpress i think) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@tptrixtop Sorry, I am not a maintainer... Ping @ezimuel :) |
@fuel-odrais Thanks! |
When will be this fix released as new zend-db version? |
Provide a narrative description of what you are trying to accomplish:
Call
prepareStatementForSqlObject
on aSelect
with a sub-Select
that haslimit
and/oroffset
setA PDO Exception is thrown:
PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined
The statement is properly generated.
master
branch, and submit against that branch.CHANGELOG.md
entry for the fix.