mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27: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.
|
// Under certain versions of PHP, there is a bug with BIT columns.
|
||||||
// An empty string is returned no matter what the value is.
|
// An empty string is returned no matter what the value is.
|
||||||
// Workaround: cast to unsigned.
|
// Workaround: cast to unsigned.
|
||||||
if ($phpIsBroken === true) {
|
if ($phpIsBroken === true && $this->settings->driver !== 'pgsql') {
|
||||||
foreach ($bitColumns as $column) {
|
foreach ($bitColumns as $column) {
|
||||||
unset($columns[$column]);
|
unset($columns[$column]);
|
||||||
$columns[] = "CAST($column AS UNSIGNED) AS $column";
|
$columns[] = "CAST($column AS UNSIGNED) AS $column";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user