summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-08 11:05:00 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-08 11:05:00 +0100
commite8b896348dc29a1c1e02d97b06b7497613924ad6 (patch)
treea3d667dc0520c559cd23fc592e7cd3cfa410a68e /system
parent96ea52894aea85b86d75f59fee35f90676735060 (diff)
Fix #1985
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/mysql/mysql_forge.php4
-rw-r--r--system/database/drivers/mysqli/mysqli_forge.php4
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php4
3 files changed, 6 insertions, 6 deletions
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php
index 019f6d353..9cee385df 100644
--- a/system/database/drivers/mysql/mysql_forge.php
+++ b/system/database/drivers/mysql/mysql_forge.php
@@ -118,10 +118,10 @@ class CI_DB_mysql_forge extends CI_DB_forge {
}
else
{
- $field[$i]['_literal'] = empty($field['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
+ $field[$i]['_literal'] = empty($field[$i]['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
}
- $field[$i] = $field['_literal'].$this->_process_column($field[$i]);
+ $field[$i] = $field[$i]['_literal'].$this->_process_column($field[$i]);
}
}
diff --git a/system/database/drivers/mysqli/mysqli_forge.php b/system/database/drivers/mysqli/mysqli_forge.php
index 088a6a09a..294fc20b6 100644
--- a/system/database/drivers/mysqli/mysqli_forge.php
+++ b/system/database/drivers/mysqli/mysqli_forge.php
@@ -118,10 +118,10 @@ class CI_DB_mysqli_forge extends CI_DB_forge {
}
else
{
- $field[$i]['_literal'] = empty($field['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
+ $field[$i]['_literal'] = empty($field[$i]['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
}
- $field[$i] = $field['_literal'].$this->_process_column($field[$i]);
+ $field[$i] = $field[$i]['_literal'].$this->_process_column($field[$i]);
}
}
diff --git a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
index 2add7d204..1e69d693e 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
@@ -132,10 +132,10 @@ class CI_DB_pdo_mysql_forge extends CI_DB_pdo_forge {
}
else
{
- $field[$i]['_literal'] = empty($field['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
+ $field[$i]['_literal'] = empty($field[$i]['new_name']) ? "\n\tMODIFY " : "\n\tCHANGE ";
}
- $field[$i] = $field['_literal'].$this->_process_column($field[$i]);
+ $field[$i] = $field[$i]['_literal'].$this->_process_column($field[$i]);
}
}