summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-01-06 10:35:55 +0100
committerAndrey Andreev <narf@devilix.net>2017-01-06 10:36:52 +0100
commit05753c1cce687e6766329272b7dda155de2614f0 (patch)
treea276539a611c633403e030e8f7d6d44bff9a5fa1 /system
parenta9600161a845c6f26eebd9822ae7d799b89c8a00 (diff)
[ci skip] Merge pull request #4962 from ytetsuro/patch-2
oci8_forge add column bug fix
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/oci8/oci8_forge.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/database/drivers/oci8/oci8_forge.php b/system/database/drivers/oci8/oci8_forge.php
index ac33cde0c..70fc5c4db 100644
--- a/system/database/drivers/oci8/oci8_forge.php
+++ b/system/database/drivers/oci8/oci8_forge.php
@@ -126,6 +126,7 @@ class CI_DB_oci8_forge extends CI_DB_forge {
$sqls[] = $sql.' RENAME COLUMN '.$this->db->escape_identifiers($field[$i]['name'])
.' '.$this->db->escape_identifiers($field[$i]['new_name']);
}
+ $field[$i] = "\n\t".$field[$i]['_literal'];
}
}
@@ -136,7 +137,7 @@ class CI_DB_oci8_forge extends CI_DB_forge {
// RENAME COLUMN must be executed after MODIFY
array_unshift($sqls, $sql);
- return $sql;
+ return $sqls;
}
// --------------------------------------------------------------------