emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

batch execution of mybatis3.0 is hard to use. #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
mybatis3.0

Please describe the problem.  Unit tests are best!
The current batch_execution is not flexable,for example:
----------------------------------------
beginTransaction;
drop table tb001;
try{create temporary table tb001;}catch(Exception e){}
insert some data into tb001;
....
drop table tb001;
endTransaction;
----------------------------------------
In this scene,I want to drop the temporary table for safe,but if the 
temporary table doesn't exsit,a exception will be thrown ,and it will stop the 
batch execution.

What is the expected output? What do you see instead?
I want methods like "startBatch" and "executeBatch",so that I can decide which 
sql scripts should be added to batch,and which shouldn't.

Just a advice,thanks.

Please provide any additional information below.

Original issue reported on code.google.com by zhmt...@gmail.com on 17 Sep 2010 at 8:58

GoogleCodeExporter commented 9 years ago
flushStatemens executes a batch and starts a new one.

Original comment by eduardo.macarron on 8 Jan 2012 at 6:06