diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-14 17:43:47 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-08-14 17:43:47 +0200 |
commit | b62cf1ed8e40fa7f5e8f02dea57aa2f34d1beea7 (patch) | |
tree | 98b3bc7638c7510704c2d43bf9a88bf205026f1c /system/database | |
parent | 770700933bd77910859a9dec26991f923382bc4c (diff) |
Fixed a bug (Reactor #89) where MySQL export would fail if the table had hyphens or other non alphanumeric/underscore characters.
Diffstat (limited to 'system/database')
-rw-r--r-- | system/database/drivers/mysql/mysql_utility.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php index e9747c540..48c4d6316 100644 --- a/system/database/drivers/mysql/mysql_utility.php +++ b/system/database/drivers/mysql/mysql_utility.php @@ -96,7 +96,7 @@ class CI_DB_mysql_utility extends CI_DB_utility { } // Get the table schema - $query = $this->db->query("SHOW CREATE TABLE `".$this->db->database.'`.'.$table); + $query = $this->db->query("SHOW CREATE TABLE `".$this->db->database.'`.`'.$table.'`'); // No result means the table name was invalid if ($query === FALSE) |