From e7932210f9fbca5c89296e13fa1558f268f5ab8b Mon Sep 17 00:00:00 2001 From: Carsten Schmitz Date: Fri, 10 Dec 2010 21:38:02 +0000 Subject: [PATCH] Fixed issue #4783: If installed on Postgres 9.0 you can't login git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9622 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/install/createdb.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/install/createdb.php b/admin/install/createdb.php index dfd7e2f7905..b10a8f7d19f 100644 --- a/admin/install/createdb.php +++ b/admin/install/createdb.php @@ -39,6 +39,10 @@ $createdbtype='mysql'; } if ($createdbtype=='mssql_n' || $createdbtype=='odbc_mssql' || $createdbtype=='odbtp') $createdbtype='mssql'; + if($createdbtype=='postgres' && $connect->pgVersion=='9') + { + $connect->execute("ALTER DATABASE {$dbname} SET bytea_output='escape';"); + } if($createdbtype=='mssqlnative') $createdbtype='mssqlnative'; if (modify_database(dirname(__FILE__).'/create-'.$createdbtype.'.sql')) {