Skip to content

Commit 7648e01

Browse files
committed
fix expectations
1 parent 50bb11d commit 7648e01

7 files changed

+51
-88
lines changed

.phpstan-dba-mysqli.cache

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.phpstan-dba-pdo-mysql.cache

Lines changed: 1 addition & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/default/config/.phpunit-phpstan-dba-pdo-mysql.cache

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/rules/SyntaxErrorInPreparedStatementMethodRuleTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function testSyntaxErrorInQueryRule(): void
9999
388,
100100
],
101101
[
102-
"Query error: 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).",
102+
"Query error: Unknown column 'asdsa' in 'where clause' (1054).",
103103
389,
104104
],
105105
];
@@ -188,9 +188,7 @@ public function testSyntaxErrorInQueryRule(): void
188188
388,
189189
],
190190
[
191-
'Query error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "freigabe1u1"
192-
LINE 1: SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada LIMIT...
193-
^ (42601).',
191+
"Query error: Unknown column 'asdsa' in 'where clause' (1054).",
194192
389,
195193
],
196194
];
@@ -257,7 +255,7 @@ public function testSyntaxErrorInQueryRule(): void
257255
388,
258256
],
259257
[
260-
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
258+
"Query error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'asdsa' in 'where clause' (42S22).",
261259
389,
262260
],
263261
];

tests/rules/SyntaxErrorInQueryMethodRuleTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ public function testSyntaxErrorInQueryRule(): void
119119
],
120120
[
121121
"Query error: 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).",
122-
155,
122+
154,
123123
],
124124
[
125125
"Query error: 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (1064).",
126-
156,
126+
155,
127127
],
128128
];
129129
} elseif (PdoMysqlQueryReflector::NAME === getenv('DBA_REFLECTOR')) {
@@ -198,11 +198,11 @@ public function testSyntaxErrorInQueryRule(): void
198198
],
199199
[
200200
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
201-
155,
201+
154,
202202
],
203203
[
204204
"Query error: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'freigabe1u1 FROM ada LIMIT 0' at line 1 (42000).",
205-
156,
205+
155,
206206
],
207207
];
208208
} elseif (PdoPgSqlQueryReflector::NAME === getenv('DBA_REFLECTOR')) {
@@ -319,13 +319,13 @@ public function testSyntaxErrorInQueryRule(): void
319319
'Query error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "freigabe1u1"
320320
LINE 1: SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada LIMIT...
321321
^ (42601).',
322-
155,
322+
154,
323323
],
324324
[
325325
'Query error: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "freigabe1u1"
326326
LINE 1: SELECT email adaid WHERE gesperrt freigabe1u1 FROM ada LIMIT...
327327
^ (42601).',
328-
156,
328+
155,
329329
],
330330
];
331331
} else {

tests/rules/config/.phpunit-phpstan-dba-mysqli.cache

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)