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