mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 07:17:32 +00:00
#63: Disable PHP workaround for pgsql driver
This commit is contained in:
parent
037ab6b9c9
commit
51cdf888dc
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user