Index: trunk/phase3/includes/installer/PostgresInstaller.php |
— | — | @@ -224,8 +224,8 @@ |
225 | 225 | |
226 | 226 | $SQL = "SELECT 1 FROM pg_catalog.pg_database WHERE datname = " . $conn->addQuotes( $dbName ); |
227 | 227 | $rows = $conn->numRows( $conn->query( $SQL ) ); |
| 228 | + $safedb = $conn->addIdentifierQuotes( $dbName ); |
228 | 229 | if( !$rows ) { |
229 | | - $safedb = $conn->addIdentifierQuotes( $dbName ); |
230 | 230 | $conn->query( "CREATE DATABASE $safedb OWNER $safeuser", __METHOD__ ); |
231 | 231 | } else { |
232 | 232 | $conn->query( "ALTER DATABASE $safedb OWNER TO $safeuser", __METHOD__ ); |