summaryrefslogtreecommitdiff
path: root/system/libraries
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2009-07-20 10:51:07 +0200
committerBharat Mediratta <bharat@menalto.com>2009-07-23 09:12:12 -0700
commit2282f9977eab2c32b5192506a124c9a3ccda7578 (patch)
treeab00701a2d292e4c735e1cd6295abab0c32a9379 /system/libraries
parent7c7d4c0ec0386550e121da8ef0adf3fb65f7881e (diff)
Improve PgSQL compatibility in Kohana
( see http://dev.kohanaphp.com/issues/1855 ) (cherry picked from commit 8cbf43ed2abe9772045766e598bb9fe3d4def983)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/ORM.php4
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;