diff options
author | Andrey Andreev <narf@devilix.net> | 2017-06-13 12:23:27 +0200 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2017-06-13 12:24:01 +0200 |
commit | 09d4eb6d6272251a598986552971d6ba311f7afb (patch) | |
tree | eda391db94d7f83ba0b4d847703dd1823197bfab /system | |
parent | ee9d428171dc201f51eaffdb62616312915681ff (diff) |
[ci skip] Merge pull request #5150 from ytetsuro/add-oracle-rename-column-to-keyword
Fix DBForge triggering ORA-00946 while renaming columns
Diffstat (limited to 'system')
-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']; |