CodeIgniter Forums
[3.1.2] update_batch not work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19)
+--- Thread: [3.1.2] update_batch not work (/showthread.php?tid=66522)

Pages: 1 2


RE: [3.1.2] update_batch not work - enlivenapp - 01-02-2017

Just adding my $0.02 on the fix.

Fix much appreciated.


RE: [3.1.2] update_batch not work - marcan - 01-07-2017

(11-02-2016, 04:23 AM)pgee Wrote: the issue can be resolved by reverting line 1918 of DB_query_builder
from:
if ($this->query($this->_update_batch($this->protect_identifiers($table, TRUE, NULL, FALSE), array_slice($this->qb_set, $i, $batch_size), $index)))
to:
if ($this->query($this->_update_batch($this->protect_identifiers($table, TRUE, NULL, FALSE), array_slice($this->qb_set, $i, $batch_size), $this->protect_identifiers($index))))

please push out a fix - my error log file from today was > 2000 lines its caused a few headaches over here...

Thanks, it workded for me Smile