File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,7 @@ private function getServerVersion(): string
600
600
private function isTableMissing (\PDOException $ exception ): bool
601
601
{
602
602
$ driver = $ this ->driver ;
603
- $ code = $ exception ->getCode ();
603
+ $ code = $ exception ->errorInfo ? $ exception -> errorInfo [ 1 ] : $ exception -> getCode ();
604
604
605
605
switch (true ) {
606
606
case 'pgsql ' === $ driver && '42P01 ' === $ code :
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ private function getCurrentTimestampStatement(): string
330
330
private function isTableMissing (\PDOException $ exception ): bool
331
331
{
332
332
$ driver = $ this ->getDriver ();
333
- $ code = $ exception ->getCode ();
333
+ $ code = $ exception ->errorInfo ? $ exception -> errorInfo [ 1 ] : $ exception -> getCode ();
334
334
335
335
switch (true ) {
336
336
case 'pgsql ' === $ driver && '42P01 ' === $ code :
You can’t perform that action at this time.
0 commit comments