summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mysql
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-22 12:12:22 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-22 12:12:22 +0100
commit7ade8b7944d10f4fd1583789309cf003a3eac6f7 (patch)
treeb5b305d5d8ffb781682914a40f19ae8aa9dac477 /system/database/drivers/mysql
parent2eaeee5aa3971932e58ffac48554e554d799249f (diff)
Fix modify_column() issues (#2020)
Diffstat (limited to 'system/database/drivers/mysql')
-rw-r--r--system/database/drivers/mysql/mysql_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/mysql/mysql_forge.php b/system/database/drivers/mysql/mysql_forge.php
index 6c5dfc665..1e9145e4f 100644
--- a/system/database/drivers/mysql/mysql_forge.php
+++ b/system/database/drivers/mysql/mysql_forge.php
@@ -157,7 +157,7 @@ class CI_DB_mysql_forge extends CI_DB_forge {
}
return $this->db->escape_identifiers($field['name'])
- .(empty($field['new_name']) ? '' : $this->db->escape_identifiers($field['new_name']))
+ .(empty($field['new_name']) ? '' : ' '.$this->db->escape_identifiers($field['new_name']))
.' '.$field['type'].$field['length']
.$field['unsigned']
.$field['null']