Hi dear forummates.
We use org.springframework.batch.test.DataSourceInitializ er class in order to init DB on basis of .sql scripts.
After trigger was added to .sql,init failed.
After debugging,the cause of error while was found here:
This error happened,because delimiter is ";" symbol,so trigger was cut on part on basis of ";" and treated uncorrectly.Code:try { scripts = StringUtils.delimitedListToStringArray(stripComments(IOUtils.readLines(scriptResource.getInputStream())), ";"); }
Can you advise me more advanced data source initializer,that will undersnad triggers correctly?
Our Spring version is 2.5.6
I have found org.springframework.jdbc.datasource.init.DataSourc eInitializer ,but it's active from 3.0 (((
Thank you for help.
--
Sergei


Reply With Quote
