insert_batch returning -1 when query fails |
I'm trying to work with the query builder's insert_batch function. According to the documentation, it should return FALSE on failure. That is not the case.
Try this controller method: PHP Code: public function barf() { Seems to me it should probably throw an exception and at the very least it should return false.
Note insert_batch will also return -1 if you attempt to insert a record with a duplicate primary key value.
Also, the documentation on update_batch is incorrect:
http://www.codeigniter.com/userguide3/da...date_batch It lists the third param as this: Code: $value (string) – Field value, if $set is a single field Code: /**
I really apologize. I was trying to implement something with it and was casting around for help. Kinda had my head up my rear.
|
Welcome Guest, Not a member yet? Register Sign In |