-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support queries with multiple same named placeholder (#141)
Co-authored-by: Markus Staab <[email protected]>
- Loading branch information
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2349,6 +2349,11 @@ Simulated query: SELECT email, adaid FROM ada . WHERE email=\'my_other_table\' L | |
)), | ||
), | ||
), | ||
'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada | ||
WHERE (gesperrt=\'1\' AND freigabe1u1=1) OR (gesperrt=\'1\' AND freigabe1u1=0)' => | ||
array ( | ||
'error' => NULL, | ||
), | ||
'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email=\'my_other_table\' LIMIT 1' => | ||
array ( | ||
'error' => NULL, | ||
|
@@ -2787,6 +2792,14 @@ Simulated query: SELECT email, adaid, gesperrt, freigabe1u1 FROM ada . WHERE ema | |
'code' => 1054, | ||
)), | ||
), | ||
'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE asdsa=?' => | ||
array ( | ||
'error' => | ||
staabm\PHPStanDba\Error::__set_state(array( | ||
'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'? LIMIT 0\' at line 1', | ||
'code' => 1064, | ||
)), | ||
), | ||
'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE email = \'[email protected]\'' => | ||
array ( | ||
'error' => NULL, | ||
|
@@ -3017,5 +3030,13 @@ Simulated query: SELECT email, adaid, gesperrt, freigabe1u1 FROM ada . WHERE ema | |
array ( | ||
'error' => NULL, | ||
), | ||
'SELECT email, adaid, gesperrt, freigabe1u1 FROM ada WHERE gesperrt=?' => | ||
array ( | ||
'error' => | ||
staabm\PHPStanDba\Error::__set_state(array( | ||
'message' => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL/MariaDB server version for the right syntax to use near \'? LIMIT 0\' at line 1', | ||
'code' => 1064, | ||
)), | ||
), | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters