From c267a875decc33420e1bbbb656075a68fdc2cef8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 19 Nov 2005 20:14:45 +0000 Subject: [PATCH] fixed quoting of bool column to return true or false, as required by newer postgres and accepted by mysql too --- phpgwapi/inc/class.egw_db.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index 792dfd9eaf..fd8147748e 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -648,7 +648,6 @@ { return False; } - //$id = $this->Link_ID->PO_Insert_ID($table,$field); $id = $this->Link_ID->PO_Insert_ID($table,$field); // simulates Insert_ID with "SELECT MAX($field) FROM $table" if not native availible if ($id === False) // function not supported @@ -1114,7 +1113,7 @@ case 'auto': return (int) $value; case 'bool': - return $value ? 1 : 0; + return $value ? 'true' : 'false'; } if (!$this->Link_ID && !$this->connect()) {