summaryrefslogtreecommitdiffstats
path: root/DbDiff.php
diff options
context:
space:
mode:
authorJoe Freeman <joe.freeman@bitroot.com>2015-10-07 14:09:17 +0100
committerJoe Freeman <joe.freeman@bitroot.com>2015-10-07 14:09:17 +0100
commit7af44552fb46a40a908a76d2850134843605e2ea (patch)
tree04118e8613af3be20a8b7777c21fe0a18def31c1 /DbDiff.php
parentb39bea618380dbe74b6516d189f92206a9789451 (diff)
parent377a3bbf3a1d27c1a5cb41b3d04311c7e6e516a8 (diff)
downloaddbdiff-7af44552fb46a40a908a76d2850134843605e2ea.zip
dbdiff-7af44552fb46a40a908a76d2850134843605e2ea.tar.gz
dbdiff-7af44552fb46a40a908a76d2850134843605e2ea.tar.bz2
Merge pull request #2 from mannaz/patch-1
Update DbDiff.php - Table names with special characters
Diffstat (limited to 'DbDiff.php')
-rw-r--r--DbDiff.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/DbDiff.php b/DbDiff.php
index 72e0d8e..94e053d 100644
--- a/DbDiff.php
+++ b/DbDiff.php
@@ -41,7 +41,7 @@ class DbDiff {
foreach ($tables as $table_name => $fields) {
- $result = mysql_query("SHOW COLUMNS FROM " . $table_name, $db);
+ $result = mysql_query("SHOW COLUMNS FROM `" . $table_name . "`", $db);
while ($row = mysql_fetch_assoc($result)) {
$tables[$table_name][$row['Field']] = $row;
}