Patch added. This checks if statement_row is not empty after the loop ends. If it is not empty it is either appended to an existing statement or a new "INSERT INTO" line.
Patch added. This checks if statement_row is not empty after the loop ends. If it is not empty it is either appended to an existing statement or a new "INSERT INTO" line.