Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon authored Aug 19, 2024
1 parent 127b04d commit 2a32f4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pgsql/PgsqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function connect()
public function getCollation()
{
// https://www.postgresql.org/docs/current/release-16.html
if (version_compare($this->getVersion(), '16.0', '>=')) {
if (version_compare($this->getVersion(), '16.0', '>=')) {
$this->setQuery('SELECT datcollate AS lc_collate FROM pg_database WHERE datname = current_database()');
} else {
$this->setQuery('SHOW LC_COLLATE');
Expand All @@ -134,7 +134,7 @@ public function getCollation()
public function getConnectionCollation()
{
// https://www.postgresql.org/docs/current/release-16.html
if (version_compare($this->getVersion(), '16.0', '>=')) {
if (version_compare($this->getVersion(), '16.0', '>=')) {
$this->setQuery('SELECT datcollate AS lc_collate FROM pg_database WHERE datname = current_database()');
} else {
$this->setQuery('SHOW LC_COLLATE');
Expand Down

0 comments on commit 2a32f4c

Please sign in to comment.