summaryrefslogtreecommitdiffstats
path: root/system/database/DB_forge.php
diff options
context:
space:
mode:
authorTomasz T <tomasz154@10g.pl>2011-12-05 15:28:33 +0100
committerTomasz T <tomasz154@10g.pl>2011-12-05 15:28:33 +0100
commitb9ec402de2ad190df899426f4bbcebbcc759d01f (patch)
tree3ebeeb812a76065e07576a01896cbf074da05a5e /system/database/DB_forge.php
parent717253f5c77a11b1b997069ff53bd2d2ab2e538c (diff)
changed create_table method to check whether a value returned from driver's forge is sql or bool (acts exactly as create_database)
Diffstat (limited to 'system/database/DB_forge.php')
-rw-r--r--system/database/DB_forge.php6
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);
}