Permalink
Browse files

Merge pull request #22 from zacwasielewski/master

Fixed missing table prefixes in Database Forge Class rename_table() method
  • Loading branch information...
2 parents db726c6 + 0acf65a commit 254217a8655a14716bb673a0abde81c0b80ccd90 Phil Sturgeon committed Jul 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 system/database/DB_forge.php
@@ -234,7 +234,7 @@ function rename_table($table_name, $new_table_name)
show_error('A table name is required for that operation.');
}
- $sql = $this->_rename_table($table_name, $new_table_name);
+ $sql = $this->_rename_table($this->db->dbprefix.$table_name, $this->db->dbprefix.$new_table_name);
return $this->db->query($sql);
}

0 comments on commit 254217a

Please sign in to comment.