]> source.dussan.org Git - sonarqube.git/commit
Make sure MyBatis is not configured to use generated keys in batch inserts
authorDavid Gageot <david@gageot.net>
Tue, 10 Jul 2012 12:46:06 +0000 (14:46 +0200)
committerDavid Gageot <david@gageot.net>
Tue, 10 Jul 2012 12:46:06 +0000 (14:46 +0200)
commit9af370fabadd77a3714272fa9f60dc4ee0928c7e
treede93e690233c44b833bafc7b5cc229576fb664f1
parent264e44083a5e9c1bafb2591f2243b0dbc4450ca8
Make sure MyBatis is not configured to use generated keys in batch inserts

Some databases support using generated keys (mysql), some don't (Postgresql),
some make you think they do (Derby). With this check we make sure that
we catch this kind of error as early as possible
sonar-core/src/main/java/org/sonar/core/persistence/BatchSession.java