File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -279,8 +279,8 @@ private function databaseExists(string $dbName): bool
279279
280280 return false ;
281281 }
282-
283- return $ this ->db ->query (sprintf ( $ this ->checkDatabaseExistStr , $ this -> db -> escape ( $ dbName)) )->getRow () !== null ;
282+
283+ return $ this ->db ->query ($ this ->checkDatabaseExistStr , $ dbName )->getRow () !== null ;
284284 }
285285
286286 //--------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class Forge extends \CodeIgniter\Database\Forge
4949 *
5050 * @var string
5151 */
52- protected $ checkDatabaseExistStr = 'SELECT 1 FROM pg_database WHERE datname = %s ' ;
52+ protected $ checkDatabaseExistStr = 'SELECT 1 FROM pg_database WHERE datname = ? ' ;
5353
5454 /**
5555 * DROP CONSTRAINT statement
You can’t perform that action at this time.
0 commit comments