Skip to content

Commit a2c6db0

Browse files
authored
use direct result of pg_last_error()
1 parent c40986f commit a2c6db0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/Postgre/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public function error(): array
465465

466466
return [
467467
'code' => '',
468-
'message' => ! in_array($lastError, ['', '0'], true) ? $lastError : '',
468+
'message' => pg_last_error($this->connID),
469469
];
470470
}
471471

0 commit comments

Comments
 (0)