diff options
author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-07-20 10:51:07 +0200 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-23 09:12:12 -0700 |
commit | 2282f9977eab2c32b5192506a124c9a3ccda7578 (patch) | |
tree | ab00701a2d292e4c735e1cd6295abab0c32a9379 | |
parent | 7c7d4c0ec0386550e121da8ef0adf3fb65f7881e (diff) |
Improve PgSQL compatibility in Kohana
( see http://dev.kohanaphp.com/issues/1855 )
(cherry picked from commit 8cbf43ed2abe9772045766e598bb9fe3d4def983)
-rw-r--r-- | system/libraries/ORM.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/ORM.php b/system/libraries/ORM.php index c1048604..5196ba27 100644 --- a/system/libraries/ORM.php +++ b/system/libraries/ORM.php @@ -1295,7 +1295,9 @@ class ORM_Core { $value = (float) $value; break; case 'boolean': - $value = (bool) $value; + if ($value === "t") $value = true; // For PgSQL + else if ($value === "f") $value = false; // For PgSQL + else $value = (bool) $value; break; case 'string': $value = (string) $value; |