diff options
author | Andrey Andreev <narf@devilix.net> | 2017-06-13 12:23:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-13 12:23:27 +0200 |
commit | e4ed5d950a50fe64223bc6b143301ac87bbde474 (patch) | |
tree | e7de801c06293305fb4c4106f111735a774fe556 | |
parent | 735e2165d1ad16454ae1b2222a66345a74b82d14 (diff) | |
parent | 99b4d649a1d1d196d779277091c808f2bb77280f (diff) |
[ci skip] Merge pull request #5150 from ytetsuro/add-oracle-rename-column-to-keyword
Fix DBForge triggering ORA-00946 while renaming columns
-rw-r--r-- | system/database/drivers/oci8/oci8_forge.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/oci8/oci8_forge.php b/system/database/drivers/oci8/oci8_forge.php index 867a94341..724a76df4 100644 --- a/system/database/drivers/oci8/oci8_forge.php +++ b/system/database/drivers/oci8/oci8_forge.php @@ -124,7 +124,7 @@ class CI_DB_oci8_forge extends CI_DB_forge { if ($alter_type === 'MODIFY' && ! empty($field[$i]['new_name'])) { $sqls[] = $sql.' RENAME COLUMN '.$this->db->escape_identifiers($field[$i]['name']) - .' '.$this->db->escape_identifiers($field[$i]['new_name']); + .' TO '.$this->db->escape_identifiers($field[$i]['new_name']); } $field[$i] = "\n\t".$field[$i]['_literal']; |