christiannelson / c5-test-support

Automatically exported from code.google.com/p/c5-test-support
0 stars 0 forks source link

MSSQL InsertIdentityOperation type of DatabaseOperation not supported #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Usage of @DataSet with InsertIdentityOperation (dedicated to MSSQL), e.g.
@DataSet(setupOperation = "InsertIdentityOperation.CLEAN_INSERT"), doesn't
seem to be supported.

(org.springframework.core.ConstantException: Field
'INSERTIDENTITYOPERATION.CLEAN_INSERT' not found in class
[org.dbunit.operation.DatabaseOperation])

I wouldn't mind adding the support for these specific operation myself if
you care.

cf. http://dbunit.sourceforge.net/components.html#cleanInsert

-nodje

Original issue reported on code.google.com by nodje...@gmail.com on 24 Apr 2009 at 7:37

GoogleCodeExporter commented 9 years ago
This is a requirement for most all of my companies projects.

Original comment by torr0...@gmail.com on 7 Apr 2010 at 4:33

GoogleCodeExporter commented 9 years ago
Quick and dirty. I patched together this quick fix to get something working. 
It's not 
pretty, but if you set @DataSet(setupOperation = "IdentityInsertOperation") 
then it 
should work.

Original comment by torr0...@gmail.com on 7 Apr 2010 at 5:13

Attachments: