Skip to content

Commit

Permalink
Merge pull request #66 from aaam/master
Browse files Browse the repository at this point in the history
Added grave accents, backticks, to database schema name
  • Loading branch information
RussH committed May 23, 2016
2 parents a13771a + 3217222 commit b97b31f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/install/ajax/ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@

//Check if we need to update from 0.6.0 to 0.7.0
$tables = array();
$result = MySQLQuery(sprintf("SHOW TABLES FROM %s", DATABASE_NAME));
$result = MySQLQuery(sprintf("SHOW TABLES FROM `%s`", DATABASE_NAME));
while ($row = mysql_fetch_array($result, MYSQL_NUM))
{
$tables[$row[0]] = true;
Expand Down Expand Up @@ -1064,7 +1064,7 @@ function MySQLConnect()

/* Create an array of all tables in the database. */
$tables = array();
$result = MySQLQuery(sprintf("SHOW TABLES FROM %s", DATABASE_NAME));
$result = MySQLQuery(sprintf("SHOW TABLES FROM `%s`", DATABASE_NAME));
while ($row = mysql_fetch_row($result))
{
$tables[$row[0]] = true;
Expand Down
2 changes: 1 addition & 1 deletion modules/install/backupDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function dumpDB($db, $file, $useStatus = false, $splitFiles = true, $siteID = -1
$text = '';

$result = mysql_query(
sprintf("SHOW TABLES FROM %s", DATABASE_NAME),
sprintf("SHOW TABLES FROM `%s`", DATABASE_NAME),
$connection
);
while ($row = mysql_fetch_array($result, MYSQL_NUM))
Expand Down

0 comments on commit b97b31f

Please sign in to comment.