Skip to content

Commit 019eb32

Browse files
authored
Added testcase (#124)
* Added testcase * Update syntax-error-in-query.php
1 parent 9fc8536 commit 019eb32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/data/syntax-error-in-query.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,9 @@ public function noErrorOnQueriesContainingPlaceholders(\Doctrine\DBAL\Connection
7878
// errors in this scenario are reported by SyntaxErrorInPreparedStatementMethodRule only
7979
$conn->query('SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?');
8080
}
81+
82+
public function validPrepare(PDO $pdo)
83+
{
84+
$pdo->prepare('SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE adaid=?');
85+
}
8186
}

0 commit comments

Comments
 (0)