From 597e4b85894ef3e560fd6eb63b1b12b7d9d74854 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Nov 2005 16:39:43 +0000 Subject: [PATCH] fixed for mysql < 4.1 for the quoting of boolean columns (0/1, instead of standard true/false) --- phpgwapi/inc/class.egw_db.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phpgwapi/inc/class.egw_db.inc.php b/phpgwapi/inc/class.egw_db.inc.php index b3d1496102..5bc1fa131a 100644 --- a/phpgwapi/inc/class.egw_db.inc.php +++ b/phpgwapi/inc/class.egw_db.inc.php @@ -1085,6 +1085,10 @@ case 'auto': return (int) $value; case 'bool': + if ($this->Type == 'mysql' && $this->ServerInfo['version'] < 4.1) + { + return $value ? 1 : 0; + } return $value ? 'true' : 'false'; } if (!$this->Link_ID && !$this->connect())