Skip to content

Commit 923faf5

Browse files
committed
fix Postgre
1 parent 7048ba8 commit 923faf5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/system/Database/Live/ExecuteLogMessageFormatTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testLogMessageWhenExecuteFailsShowFullStructuredBacktrace(): voi
4848

4949
$pattern = match ($db->DBDriver) {
5050
'MySQLi' => '/Table \'test\.some_table\' doesn\'t exist/',
51-
'Postgre' => '/pg_query\(\): Query failed: ERROR: relation "some_table" does not exist/',
51+
'Postgre' => '/pg_query\(\): Query failed: ERROR: 42P01: relation "some_table" does not exist/',
5252
'SQLite3' => '/Unable to prepare statement:\s(\d+,\s)?no such table: some_table/',
5353
'OCI8' => '/oci_execute\(\): ORA-00942: table or view does not exist/',
5454
'SQLSRV' => '/\[Microsoft\]\[ODBC Driver \d+ for SQL Server\]\[SQL Server\]Invalid object name \'some_table\'/',

tests/system/Database/Live/Postgre/ConnectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testShowErrorMessageWhenSettingInvalidCharset(): void
4040
$this->expectException(DatabaseException::class);
4141
$this->expectExceptionMessage(
4242
'Unable to connect to the database.
43-
Main connection [Postgre]: ERROR: invalid value for parameter "client_encoding": "utf8mb4"',
43+
Main connection [Postgre]: ERROR: 22023: invalid value for parameter "client_encoding": "utf8mb4"',
4444
);
4545

4646
$config = config('Database');

0 commit comments

Comments
 (0)