From 5e7bf3e0e2636033727def004c6a2dc1ecc3e698 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Tue, 5 Feb 2019 23:11:45 -0500 Subject: [PATCH] Fix getGeneratedKey test --- .../test/java/com/moparisthebest/jdbc/QueryMapperTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/src/test/java/com/moparisthebest/jdbc/QueryMapperTest.java b/test/src/test/java/com/moparisthebest/jdbc/QueryMapperTest.java index 4360fa9..9b1d54f 100644 --- a/test/src/test/java/com/moparisthebest/jdbc/QueryMapperTest.java +++ b/test/src/test/java/com/moparisthebest/jdbc/QueryMapperTest.java @@ -498,6 +498,11 @@ public class QueryMapperTest { "START WITH 1\n" + "INCREMENT BY 1\n" + "CACHE 10"); + + // if this is JdbcMapper, not QueryMapper, this will fail unless compiled for ORACLE, so just exit early unless that's the case + if(!(this.qm instanceof QueryMapperQmDao) && !"ORACLE".equals(System.getProperty("jdbcMapper.databaseType"))) + return; + // so different we have to do test here for (long expected = 1; expected < 5; ++expected) { final long autoTableNo = this.qm.insertGetGeneratedKeyOracle(expected * 2);