summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/oci8
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-01-06 10:35:55 +0100
committerGitHub <noreply@github.com>2017-01-06 10:35:55 +0100
commit1d60b20e852132ca8021e8b03e0b208398e8eb2d (patch)
tree93ee00bfbae24e224e371f7e7f899925a3c4376d /system/database/drivers/oci8
parent1e8236f24f0674da8eab227adc9481377978b86b (diff)
parent66b289839a5b2c2cb48526c78eeb92d2f26ade05 (diff)
[ci skip] Merge pull request #4962 from ytetsuro/patch-2
oci8_forge add column bug fix
Diffstat (limited to 'system/database/drivers/oci8')
-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;
}
// --------------------------------------------------------------------