summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorSoesapto Joeni Hantoro <shidec00@yahoo.com>2012-05-11 06:21:43 +0200
committerSoesapto Joeni Hantoro <shidec00@yahoo.com>2012-05-11 06:21:43 +0200
commit938c7ef59991ed12b8634b292e2f8fc9fa385264 (patch)
tree2aec6e4e19446fb184f82082ce8dd39dbee3b4f7 /system
parentb01d96f65a78528323b3917eec31c4ed8b58eb7b (diff)
Escaping boolean data type, some DBMS (e.g., postgre) need it
Diffstat (limited to 'system')
-rw-r--r--system/database/DB_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index ef77b594e..09513e267 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -696,7 +696,7 @@ abstract class CI_DB_driver {
}
elseif (is_bool($str))
{
- return ($str === FALSE) ? 0 : 1;
+ return ($str === FALSE) ? "FALSE" : "TRUE";
}
elseif (is_null($str))
{