diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 06:07:40 +0200 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2008-10-17 06:07:40 +0200 |
commit | 59523592c58abc303a6eae1904c80fa6a428c3d3 (patch) | |
tree | bb27e7ac32d6b79c1ae5d5ddf33c8bc84436a228 /system/database/DB_forge.php | |
parent | e3945e9452fdaa155ad3a0ce51b591d3b12ccfe0 (diff) |
Fixed a number of bug reports related to table/db names not being escaped or prefixed correctly.
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r-- | system/database/DB_forge.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 64f95d635..20f0a3087 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -253,7 +253,7 @@ class CI_DB_forge { {
if ($table == '')
{
- show_error('A table name is required for that operation.');
+ show_error('A table name is required for that operation.');
}
// add field info into field array, but we can only do one at a time
@@ -286,12 +286,12 @@ class CI_DB_forge { if ($table == '')
{
- show_error('A table name is required for that operation.');
+ show_error('A table name is required for that operation.');
}
if ($column_name == '')
{
- show_error('A column name is required for that operation.');
+ show_error('A column name is required for that operation.');
}
$sql = $this->_alter_table('DROP', $this->db->dbprefix.$table, $column_name);
@@ -312,10 +312,9 @@ class CI_DB_forge { */
function modify_column($table = '', $field = array())
{
-
if ($table == '')
{
- show_error('A table name is required for that operation.');
+ show_error('A table name is required for that operation.');
}
// add field info into field array, but we can only do one at a time
|