summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php
index 92806d305..bec8d5554 100644
--- a/system/database/DB_forge.php
+++ b/system/database/DB_forge.php
@@ -1009,7 +1009,7 @@ abstract class CI_DB_forge {
is_array($this->keys[$i]) OR $this->keys[$i] = array($this->keys[$i]);
$sqls[] = 'CREATE INDEX '.$this->db->escape_identifiers(implode('_', $this->keys[$i]))
- .' ON '.$this->db->escape_identifiers($table)
+ .' ON '.$table
.' ('.implode(', ', $this->db->escape_identifiers($this->keys[$i])).');';
}