Skip to content
Browse files

Fix #1985

  • Loading branch information...
1 parent 96ea528 commit e8b896348dc29a1c1e02d97b06b7497613924ad6 @narfbg narfbg committed Nov 8, 2012
View
4 system/database/drivers/mysql/mysql_forge.php
@@ -118,10 +118,10 @@ protected function _alter_table($alter_type, $table, $field)
}
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]);
}
}
View
4 system/database/drivers/mysqli/mysqli_forge.php
@@ -118,10 +118,10 @@ protected function _alter_table($alter_type, $table, $field)
}
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]);
}
}
View
4 system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php
@@ -132,10 +132,10 @@ protected function _alter_table($alter_type, $table, $field)
}
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]);
}
}

0 comments on commit e8b8963

Please sign in to comment.
Something went wrong with that request. Please try again.