summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraroche <augustin.roche@gmail.com>2012-07-16 17:22:08 +0200
committeraroche <augustin.roche@gmail.com>2012-07-16 17:22:08 +0200
commit7f875b70c1f90cebc434aa9a0238c406e29ee4bc (patch)
tree195cc7d572bd29db383a5f16c1d886a154e6b61e
parent36a97113d40bba7ec04287762693d2fa69d67c3a (diff)
Fix on _update_batch() : wrong variable used for field selection
-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), ';
}