Fixed Array to string in bulkInsert method

truonglv

Well-known member
Affected version
Latest
If the column not found in row data that exception will be threw.
Code:
throw new \InvalidArgumentException("Row $row missing column $col in bulk insert");

Cause $row is array not string.
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.0.12).

Change log:
Prevent an array-to-string conversion when throwing a bulkInsert exception if a missing column is detected.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom