[3.1.2] update_batch not work |
Code: $dataTotal = array( With the new update the system does not capture the value of index. (10-31-2016, 08:51 AM)rodrigoprazim 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...
(11-02-2016, 04:23 AM)pgee Wrote: the issue can be resolved by reverting line 1918 of DB_query_builder Thanks for replying, pgee, but unfortunately I had to downgrade the version, 3.1.2 to 3.1.0, until I solved this problem.
(12-12-2016, 05:21 AM)Narf Wrote: Please test with https://github.com/bcit-ci/CodeIgniter/c...ea583dd8d8 Thanks for reply. Will version 3.1.3 come out with fixes? (12-12-2016, 08:05 AM)rodrigoprazim Wrote:(12-12-2016, 05:21 AM)Narf Wrote: Please test with https://github.com/bcit-ci/CodeIgniter/c...ea583dd8d8 Will you test the quoted commit?
(12-12-2016, 09:57 AM)Narf Wrote:(12-12-2016, 08:05 AM)rodrigoprazim Wrote:(12-12-2016, 05:21 AM)Narf Wrote: Please test with https://github.com/bcit-ci/CodeIgniter/c...ea583dd8d8 I already did the tests and it worked perfectly, thank you. Now I'm waiting for version 3.1.3 to upgrade to the system.
@Narf
Thank you for fixing that. Much appreciated. I just spent 2-3 hours scratching my head and thinking 'Why is that not working?'. I thought I was going mad, outputting everything, var_dumping everything, reading the docs again and again, it was telling me the where clause was not finding the id field and it was from a big complex form, with variable amounts of input fields and validation rules, and I was sure I must have been doing something daft. Then I thought to check the forums, and here it is, bug already found and fixed. Thank you. You are a superstar! Updated the system database file to the latest on github and all is peaceful and wonderful with update_batch once again :-) Best wishes, Paul. |
Welcome Guest, Not a member yet? Register Sign In |