09-25-2016, 12:01 AM
Today I came across a strange phenomena with Query Builder.
Whenever I use $this->db->insert($array_to_insert), it appends two undeclared table names to the query causing it to fail.
I found the culprit when I used var_dump(db) and found the two inside the array qb_set:
["qb_set":protected]=> array(2) { ["`col_1`"]=> string(2) "''" ["`col_2`"]=> string(2) "''" }
How do you guys recommend resetting this array properly? I swear I do not use col_1 and col_2 nowhere near where I perform insertions.
Whenever I use $this->db->insert($array_to_insert), it appends two undeclared table names to the query causing it to fail.
I found the culprit when I used var_dump(db) and found the two inside the array qb_set:
["qb_set":protected]=> array(2) { ["`col_1`"]=> string(2) "''" ["`col_2`"]=> string(2) "''" }
How do you guys recommend resetting this array properly? I swear I do not use col_1 and col_2 nowhere near where I perform insertions.