mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user