Closed
Description
Hello,
I met a problem with a script that contains 2 statements : a correct create table script and an incorrect insert script.
The create table is correct, but the insert script couldn't work because of data cast impossible to be executed.
As there is an error executing the script, none of the two statement where applied against the database, but mybatis reporded this script with success.
I'm using SQL Server with the latest jdbc driver.
The only workaround I found is to set send_full_script to false, so that each statement is sent on its own, and in this case, mybatis reports correctly as failure because of the 2nd incorrect statement.
I can't explain the way mybatis works in this case.