summaryrefslogtreecommitdiff
path: root/system/libraries/ORM.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-07-23 09:29:29 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-07-23 09:29:29 -0700
commitac23b9be185d98e3b672dc4c9051dba1ec9d10fc (patch)
tree73b50afb60202930d7bed2ef982eef0be0106fe0 /system/libraries/ORM.php
parentfa0c17ab5be2724b7fa850f2077afe7e69d6ef4d (diff)
parent7f1a7ead589ce85e029ff0eb7f7e88bd04b8c8cb (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'system/libraries/ORM.php')
-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;