From 51cdf888dcef6c8220f05353d3b82816b6eef170 Mon Sep 17 00:00:00 2001 From: ruan <2369127-ruany@users.noreply.gitlab.com> Date: Wed, 28 Apr 2021 20:54:10 +0200 Subject: [PATCH] #63: Disable PHP workaround for pgsql driver --- inc/page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/page.php b/inc/page.php index 1bea6b5..b6ef238 100644 --- a/inc/page.php +++ b/inc/page.php @@ -219,7 +219,7 @@ class Page { // Under certain versions of PHP, there is a bug with BIT columns. // An empty string is returned no matter what the value is. // Workaround: cast to unsigned. - if ($phpIsBroken === true) { + if ($phpIsBroken === true && $this->settings->driver !== 'pgsql') { foreach ($bitColumns as $column) { unset($columns[$column]); $columns[] = "CAST($column AS UNSIGNED) AS $column";