mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Misc platform fixes (#1157)
* Oracle does not return row count - so we probably cannot detect Optimistic locking * DB2 wants a varchar null value (other platfroms are happy with this, too) * FIX Test for DB2 platform
This commit is contained in:
committed by
Rob Bygrave
parent
64bf6d6a35
commit
1651d5e119
@@ -14,6 +14,8 @@ public class SqlRowBooleanTest extends BaseTestCase {
|
||||
sqlQuery = Ebean.createSqlQuery("SELECT 1 AS ISNT_NULL");
|
||||
} else if (isOracle()) {
|
||||
sqlQuery = Ebean.createSqlQuery("SELECT 1 AS ISNT_NULL from dual");
|
||||
} else if (isDb2()) {
|
||||
sqlQuery = Ebean.createSqlQuery("SELECT 1 AS ISNT_NULL from SYSIBM.SYSDUMMY1");
|
||||
} else {
|
||||
sqlQuery = Ebean.createSqlQuery("SELECT 1 IS NOT NULL AS ISNT_NULL");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user