summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorytetsuro <phper.0o0@gmail.com>2016-12-26 04:30:32 +0100
committerTetsuro Yoshikawa <tetsuro.yoshikawa@seezoo.co.jp>2017-01-05 13:31:09 +0100
commitd24dbe9d42a2dc0dce95339bd351d3a130a81c23 (patch)
tree0662abd1cc16a81bab1c6f30f85d6f56d48ec9b4 /system/database/drivers
parent1e8236f24f0674da8eab227adc9481377978b86b (diff)
oci8_forge add column bug fix
Notice Error Array to string conversion $this->dbforge->add_column('sample', [ 'column_name1' => [ 'type' => 'char', 'default' => '0' ], 'column_name2' => [ 'type' => 'char', 'default' => '0' ] ]);
Diffstat (limited to 'system/database/drivers')
-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..33f2ce228 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] = $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;
}
// --------------------------------------------------------------------