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
When running the following code, i get an Error 'ORA-01008: Not all Variables bound'.
The problem are the 2 Escape-Statements in my LIKE-Clauses. If i have just one of these, or none, the statement works perfectly. But everytime i'm using more than one LIKE-ESCAPE clauses, i'm getting the error.
$sql = "SELECT * FROM table WHERE col1 LIKE :p1 ESCAPE '\' OR col2 LIKE :p2 ESCAPE '\'"; $params = array('p1' => '%\_%', 'p2' => 'test'); /** EntityManager $em */ $em->getConnection()->fetchAssoc($sql, $params);
I'm currently running Doctrine\DBAL in version 2.5.4.
The text was updated successfully, but these errors were encountered:
I'm currently facing the following Error.
When running the following code, i get an Error 'ORA-01008: Not all Variables bound'.
The problem are the 2 Escape-Statements in my LIKE-Clauses. If i have just one of these, or none, the statement works perfectly. But everytime i'm using more than one LIKE-ESCAPE clauses, i'm getting the error.
$sql = "SELECT * FROM table WHERE col1 LIKE :p1 ESCAPE '\' OR col2 LIKE :p2 ESCAPE '\'";
$params = array('p1' => '%\_%', 'p2' => 'test');
/** EntityManager $em */
$em->getConnection()->fetchAssoc($sql, $params);
I'm currently running Doctrine\DBAL in version 2.5.4.
The text was updated successfully, but these errors were encountered: