summaryrefslogtreecommitdiff
path: root/system/libraries/Database.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-11-01 09:32:42 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-11-01 09:32:42 -0800
commit808fd4d3a0f38a2ea80bb8d56e1f8c6ce499e42d (patch)
tree2bf6392d68eb4a532f386daa7cf99f5aade7e5a3 /system/libraries/Database.php
parent488b67014b44baf8bb19deaf7c77e87a95be220b (diff)
Update the modified with a local fix for Kohana ticket #2298
Diffstat (limited to 'system/libraries/Database.php')
-rw-r--r--system/libraries/Database.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/system/libraries/Database.php b/system/libraries/Database.php
index 2039371c..4cd29c58 100644
--- a/system/libraries/Database.php
+++ b/system/libraries/Database.php
@@ -1031,8 +1031,12 @@ class Database_Core {
$table = $this->from[0];
}
+ else
+ {
+ $table = $this->config['table_prefix'].$table;
+ }
- $sql = $this->driver->merge($this->config['table_prefix'].$table, array_keys($this->set), array_values($this->set));
+ $sql = $this->driver->merge($table, array_keys($this->set), array_values($this->set));
$this->reset_write();
return $this->query($sql);
@@ -1068,8 +1072,12 @@ class Database_Core {
$table = $this->from[0];
}
+ else
+ {
+ $table = $this->config['table_prefix'].$table;
+ }
- $sql = $this->driver->update($this->config['table_prefix'].$table, $this->set, $this->where);
+ $sql = $this->driver->update($table, $this->set, $this->where);
$this->reset_write();
return $this->query($sql);