File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ private function getCurrentTimestampStatement(): string
241
241
private function isTableMissing (\PDOException $ exception ): bool
242
242
{
243
243
$ driver = $ this ->getDriver ();
244
- $ code = $ exception ->getCode ();
244
+ $ code = $ exception ->errorInfo ? $ exception -> errorInfo [ 1 ] : $ exception -> getCode ();
245
245
246
246
return match ($ driver ) {
247
247
'pgsql ' => '42P01 ' === $ code ,
Original file line number Diff line number Diff line change @@ -294,7 +294,9 @@ private function getNowCode(): string
294
294
try {
295
295
$ this ->supportTime = 1 === $ this ->evaluate ($ script , 'symfony_check_support_time ' , []);
296
296
} catch (LockStorageException $ e ) {
297
- if (!str_contains ($ e ->getMessage (), 'commands not allowed after non deterministic ' )) {
297
+ if (!str_contains ($ e ->getMessage (), 'commands not allowed after non deterministic ' )
298
+ && !str_contains ($ e ->getMessage (), 'is not allowed from script script ' )
299
+ ) {
298
300
throw $ e ;
299
301
}
300
302
$ this ->supportTime = false ;
You can’t perform that action at this time.
0 commit comments