diff options
author | Tomasz T <tomasz154@10g.pl> | 2011-12-05 15:28:33 +0100 |
---|---|---|
committer | Tomasz T <tomasz154@10g.pl> | 2011-12-05 15:28:33 +0100 |
commit | b9ec402de2ad190df899426f4bbcebbcc759d01f (patch) | |
tree | 3ebeeb812a76065e07576a01896cbf074da05a5e | |
parent | 717253f5c77a11b1b997069ff53bd2d2ab2e538c (diff) |
changed create_table method to check whether a value returned from driver's forge is sql or bool (acts exactly as create_database)
-rw-r--r-- | system/database/DB_forge.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/database/DB_forge.php b/system/database/DB_forge.php index 1aa2334ea..78bf77a9f 100644 --- a/system/database/DB_forge.php +++ b/system/database/DB_forge.php @@ -205,6 +205,12 @@ class CI_DB_forge { $sql = $this->_create_table($this->db->dbprefix.$table, $this->fields, $this->primary_keys, $this->keys, $if_not_exists); $this->_reset(); + + if (is_bool($sql)) + { + return $sql; + } + return $this->db->query($sql); } |