mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 21:28:02 +02:00
MSSQL: delimited name in mssql_select_db
This commit is contained in:
@@ -67,7 +67,7 @@ class DibiMsSqlDriver extends DibiObject implements IDibiDriver, IDibiResultDriv
|
|||||||
throw new DibiDriverException("Can't connect to DB.");
|
throw new DibiDriverException("Can't connect to DB.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($config['database']) && !@mssql_select_db($config['database'], $this->connection)) { // intentionally @
|
if (isset($config['database']) && !@mssql_select_db($this->escape($config['database'], dibi::IDENTIFIER), $this->connection)) { // intentionally @
|
||||||
throw new DibiDriverException("Can't select DB '$config[database]'.");
|
throw new DibiDriverException("Can't select DB '$config[database]'.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user