summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-07-16 18:29:55 +0200
committerAndrey Andreev <narf@bofh.bg>2012-07-16 18:29:55 +0200
commit4253d320e229150eab6e5d0333508c85e434f3e3 (patch)
tree195cc7d572bd29db383a5f16c1d886a154e6b61e /system
parent36a97113d40bba7ec04287762693d2fa69d67c3a (diff)
parent7f875b70c1f90cebc434aa9a0238c406e29ee4bc (diff)
Merge pull request #1627 from aroche/patch-1
Fix on _update_batch() : wrong variable used for field selection
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 20b78673e..031740851 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -529,7 +529,7 @@ class CI_DB_postgre_driver extends CI_DB {
$cases = '';
foreach ($final as $k => $v)
{
- $cases .= $k.' = (CASE '.$k."\n"
+ $cases .= $k.' = (CASE '.$index."\n"
.implode("\n", $v)."\n"
.'ELSE '.$k.' END), ';
}