#817 - SqlRow getBoolean() does not treat numeric 1 value as true (with MySql and other DB's without native boolean type) - Fix test for PG

This commit is contained in:
Robin Bygrave
2016-08-29 21:50:14 +12:00
parent 4bad4358f0
commit 1796c8b9bc
@@ -9,7 +9,7 @@ public class SqlRowBooleanTest {
@Test
public void getBoolean() {
SqlQuery sqlQuery = Ebean.createSqlQuery("SELECT 1 IS NOT NULL AS `ISNT_NULL`");
SqlQuery sqlQuery = Ebean.createSqlQuery("SELECT 1 IS NOT NULL AS ISNT_NULL");
SqlRow row = sqlQuery.findUnique();
Boolean value = row.getBoolean("ISNT_NULL");