File tree 1 file changed +3
-2
lines changed
tests/Persistence/Sql/WithDb
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -250,8 +250,9 @@ public function testExecuteException(): void
250
250
if ($ this ->getDatabasePlatform () instanceof MySQLPlatform) {
251
251
$ expectedErrorCode = 1146 ; // SQLSTATE[42S02]: Base table or view not found: 1146 Table 'non_existing_table' doesn't exist
252
252
253
- if (Connection::isComposerDbal2x () && !$ this ->c ->expr ()->hasNativeNamedParamSupport ()) {
254
- $ this ->markTestIncomplete ('DBAL 2.x does not set exception code when mysqli is used ' );
253
+ $ dummyExpr = $ this ->c ->expr ();
254
+ if (Connection::isComposerDbal2x () && !\Closure::bind (fn () => $ dummyExpr ->hasNativeNamedParamSupport (), null , \Atk4 \Data \Persistence \Sql \Expression::class)()) {
255
+ $ this ->markTestIncomplete ('DBAL 2.x with mysqli driver does not set exception code ' );
255
256
}
256
257
} elseif ($ this ->getDatabasePlatform () instanceof PostgreSQLPlatform) {
257
258
$ expectedErrorCode = 7 ; // SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "non_existing_table" does not exist
You can’t perform that action at this time.
0 commit comments