Index: branches/REL1_13/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -189,6 +189,13 @@ |
190 | 190 | return $this->mConn; |
191 | 191 | } |
192 | 192 | |
| 193 | + function makeConnectionString( $vars ) { |
| 194 | + $s = ''; |
| 195 | + foreach ( $vars as $name => $value ) { |
| 196 | + $s .= "$name='" . str_replace( "'", "\\'", $value ) . "' "; |
| 197 | + } |
| 198 | + return $s; |
| 199 | + } |
193 | 200 | |
194 | 201 | function initial_setup($password, $dbName) { |
195 | 202 | // If this is the initial connection, setup the schema stuff and possibly create the user |