From 3782e0c397cf77203710890bd1ed78a2cf7961dc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 8 Feb 2004 20:00:35 +0000 Subject: [PATCH] fix for pgsql: as it reports boolean values as 't' and 'f' and not like mysql as 1 and 0 --- phpgwapi/inc/class.translation_sql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 6a398ef208..b03766b520 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -399,7 +399,7 @@ if ($upgrademethod == 'addmissing') { //echo '
Test: addmissing'; - $this->db->query("SELECT content,app_name IN ('common') AS in_api FROM phpgw_lang WHERE message_id='$message_id' AND lang='$lang' AND (app_name='$app_name' OR app_name='common') ORDER BY in_api DESC",__LINE__,__FILE__); + $this->db->query("SELECT content,CASE WHEN app_name IN ('common') then 1 else 0 END AS in_api FROM phpgw_lang WHERE message_id='$message_id' AND lang='$lang' AND (app_name='$app_name' OR app_name='common') ORDER BY in_api DESC",__LINE__,__FILE__); if (!($row = $this->db->row(True))) {