Skip to content

Commit

Permalink
Fixed issue #4783: If installed on Postgres 9.0 you can't login
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@9622 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Dec 10, 2010
1 parent 4fab3c1 commit e793221
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin/install/createdb.php
Expand Up @@ -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'))
{
Expand Down

0 comments on commit e793221

Please sign in to comment.