summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-08 00:12:54 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-08 00:12:54 +0200
commit5ef194df98294d5427c0e7582ca88b1fc06e1d72 (patch)
treea416426f8b46b2d78b9a2f3d64e22e7c05d6e937 /system/database/drivers/sqlite
parent36529cae874aa380cafd10dd2552fbe0545d7915 (diff)
Resolve formatting differences between DB forge drivers
Diffstat (limited to 'system/database/drivers/sqlite')
-rw-r--r--system/database/drivers/sqlite/sqlite_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlite/sqlite_forge.php b/system/database/drivers/sqlite/sqlite_forge.php
index 25f4bf76d..71eed7df4 100644
--- a/system/database/drivers/sqlite/sqlite_forge.php
+++ b/system/database/drivers/sqlite/sqlite_forge.php
@@ -183,7 +183,7 @@ class CI_DB_sqlite_forge extends CI_DB_forge {
return FALSE;
}
- return 'ALTER TABLE '.$this->db->protect_identifiers($table).' '.$alter_type.' '.$this->db->protect_identifiers($column_name)
+ return 'ALTER TABLE '.$this->db->escape_identifiers($table).' '.$alter_type.' '.$this->db->escape_identifiers($column_name)
.' '.$column_definition
.($default_value != '' ? " DEFAULT '".$default_value."'" : '')
// If NOT NULL is specified, the field must have a DEFAULT value other than NULL