Skip to content

Commit

Permalink
colliding table names in H2 integrationtests
Browse files Browse the repository at this point in the history
  • Loading branch information
zsoltherpai committed Apr 27, 2016
1 parent 1f7ec8d commit 1f6e660
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ class H2IntegrationTest extends IntegrationTestRoutine {

def "Auto-generated keys for specified colums fetched"() {
given:
fluentJdbc.query().update("CREATE TABLE DUMMY_AUTO (id INTEGER PRIMARY KEY AUTO_INCREMENT, data VARCHAR(255));").run()
fluentJdbc.query().update("CREATE TABLE DUMMY_AUTO2 (id INTEGER PRIMARY KEY AUTO_INCREMENT, data VARCHAR(255));").run()
when:
String[] genColumns = ["id"]
def result = query.update("INSERT INTO DUMMY_AUTO(DATA) VALUES('bla')").runFetchGenKeys(
def result = query.update("INSERT INTO DUMMY_AUTO2(DATA) VALUES('bla')").runFetchGenKeys(
Mappers.singleLong(), genColumns
)
then:
Expand Down

0 comments on commit 1f6e660

Please sign in to comment.