Fixed issue when installing Thelia on database with special characters
This commit is contained in:
@@ -65,7 +65,7 @@ class Database
|
|||||||
public function insertSql($dbName = null, array $extraSqlFiles = null)
|
public function insertSql($dbName = null, array $extraSqlFiles = null)
|
||||||
{
|
{
|
||||||
if ($dbName) {
|
if ($dbName) {
|
||||||
$this->connection->query(sprintf("use %s", $dbName));
|
$this->connection->query(sprintf("use `%s`", $dbName));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql = array();
|
$sql = array();
|
||||||
@@ -146,7 +146,7 @@ class Database
|
|||||||
{
|
{
|
||||||
$this->execute(
|
$this->execute(
|
||||||
sprintf(
|
sprintf(
|
||||||
"CREATE DATABASE IF NOT EXISTS %s CHARACTER SET utf8",
|
"CREATE DATABASE IF NOT EXISTS `%s` CHARACTER SET utf8",
|
||||||
$dbName
|
$dbName
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user