insert_batch() not working completely |
If you really want to use a batch function for arrays with different key => value pairs you will need to create a custom batch function that will create an insert for each array element.
But as RBX wrote (04-19-2017, 08:50 AM)RBX Wrote: That's expected. This is the expected behavior for a bulk insert. It's not a bug or flaw in CodeIgniter I would advise you use the solution I provide. Just set all the columns in your array and only pair the values you need for each record. To make it easy, create a method that holds a default array with all columns set as keys with empty values. |
Messages In This Thread |
insert_batch() not working completely - by krishnadeveloper - 04-11-2017, 10:22 PM
RE: insert_batch() not working completely - by krishnadeveloper - 04-19-2017, 06:06 AM
RE: insert_batch() not working completely - by RBX - 04-19-2017, 08:50 AM
RE: insert_batch() not working completely - by krishnadeveloper - 04-19-2017, 11:49 PM
RE: insert_batch() not working completely - by Martin7483 - 04-20-2017, 01:37 AM
RE: insert_batch() not working completely - by krishnadeveloper - 04-21-2017, 11:12 PM
RE: insert_batch() not working completely - by Martin7483 - 04-24-2017, 08:15 AM
RE: insert_batch() not working completely - by krishnadeveloper - 04-24-2017, 10:57 PM
RE: insert_batch() not working completely - by Martin7483 - 04-25-2017, 06:12 AM
|