From 82e79812d3316b1a56329c2af3846660a064e1e3 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 23 Dec 2003 13:54:45 +0000 Subject: [PATCH] This might fix the index creation error - will be testing asap. --- phpgwapi/inc/class.schema_proc_pgsql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.schema_proc_pgsql.inc.php b/phpgwapi/inc/class.schema_proc_pgsql.inc.php index 80234466e8..259bd6f495 100644 --- a/phpgwapi/inc/class.schema_proc_pgsql.inc.php +++ b/phpgwapi/inc/class.schema_proc_pgsql.inc.php @@ -184,7 +184,8 @@ { $append = True; $ixsql = ''; - $index = $sTableName . '_' . $sFields . '_idx'; + $ixFields = str_replace(',','_',$sFields); + $index = $sTableName . '_' . $ixFields . '_idx'; return "CREATE INDEX $index ON $sTableName ($sFields);\n"; }