EllisLab/CodeIgniter — Issue #1036: "RENAME" type queries should be included in is_write_type($sql);
Author: CUBRID
Created: 2012-02-13 10:02:50+00:00
State: open

When executing a RENAME query like "$this->dbforge->rename_table('posts_before', 'posts');" the result returned by database API is TRUE or FALSE because it's WRITE_TYPE query.

However, since is_write_type() function (DB_driver.php:666) doesn't have "RENAME" in the preg_match(), the result of the rename_table() function is an object which is not equal to TRUE, thus the code assumes the operation was not successful.