You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior
the above code should generate and execute the sql "select * from test_table where field like 'abc%'"
Actual Behavior
An sql error "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined" occurred
The issue should be related to the fix 1a892c7 of #1109. It seems that the sql statement is not correctly parse by PDO when the parameter placeholder contains a "$".
The issue could be resolved by changing the ending "$" in the placeholder to a "L".
Information
Describe the Problem
The like operator [~] does not work as expected.
Code Snippet
The detail code you are using that causes the problem:
Expected Behavior
the above code should generate and execute the sql "select * from test_table where field like 'abc%'"
Actual Behavior
An sql error "SQLSTATE[HY093]: Invalid parameter number: parameter was not defined" occurred
The issue should be related to the fix 1a892c7 of #1109. It seems that the sql statement is not correctly parse by PDO when the parameter placeholder contains a "$".
The issue could be resolved by changing the ending "$" in the placeholder to a "L".
From
to
The text was updated successfully, but these errors were encountered: