Skip to content

Commit

Permalink
Quote dbname correctly and use utf-8 for postgres installation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbeyer committed Feb 20, 2012
1 parent acf5928 commit 1742027
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion admin/install/createdb.php
Expand Up @@ -79,9 +79,11 @@
break;
case 'mssql_n':
case 'odbc_mssql':
case 'mssqlnative':
case 'mssqlnative':
case 'odbtp': $createDb=$connect->Execute("CREATE DATABASE [$dbname];");
break;
case 'postgres': $createDb=$connect->Execute("CREATE DATABASE \"$dbname\" ENCODING 'UTF8'");
break;
default: $createDb=$connect->Execute("CREATE DATABASE $dbname");
}
if ($createDb) //Database has been successfully created
Expand Down

0 comments on commit 1742027

Please sign in to comment.