summaryrefslogtreecommitdiffstats
path: root/system/database/DB_driver.php
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-03-04 14:55:27 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-03-04 14:55:27 +0100
commit76988e6827ed9e5eef43e8132df0f3705624c886 (patch)
tree7385c81e5d256457ceac0fde67df8fdee90434e6 /system/database/DB_driver.php
parent002b4be248e448227a718e6f7d9ee39ccc575745 (diff)
parent4383e36dd8af32ce3a8d8584bad78f62e8465726 (diff)
Merged conflicts.
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r--system/database/DB_driver.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index 6352c731e..dca8e4733 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -290,6 +290,12 @@ class CI_DB_driver {
$sql = preg_replace("/(\W)".$this->swap_pre."(\S+?)/", "\\1".$this->dbprefix."\\2", $sql);
}
+ // Compile binds if needed
+ if ($binds !== FALSE)
+ {
+ $sql = $this->compile_binds($sql, $binds);
+ }
+
// Is query caching enabled? If the query is a "read type"
// we will load the caching class and return the previously
// cached query if it exists
@@ -305,12 +311,6 @@ class CI_DB_driver {
}
}
- // Compile binds if needed
- if ($binds !== FALSE)
- {
- $sql = $this->compile_binds($sql, $binds);
- }
-
// Save the query for debugging
if ($this->save_queries == TRUE)
{
@@ -1443,4 +1443,4 @@ class CI_DB_driver {
}
/* End of file DB_driver.php */
-/* Location: ./system/database/DB_driver.php */ \ No newline at end of file
+/* Location: ./system/database/DB_driver.php */