#700 - Postgres ARRAY and JSON expressions cast Long to ::integer rather than ::bigint

This commit is contained in:
Robin Bygrave
2016-05-12 17:38:15 +12:00
parent 1d8bb8c800
commit 409720d854
2 changed files with 2 additions and 2 deletions
@@ -23,7 +23,7 @@ public class ScalarTypeArrayList extends ScalarTypeJsonCollection<List> {
private static ScalarTypeArrayList UUID = new ScalarTypeArrayList("uuid", DocPropertyType.UUID, ArrayElementConverter.UUID);
private static ScalarTypeArrayList LONG = new ScalarTypeArrayList("integer", DocPropertyType.LONG, ArrayElementConverter.LONG);
private static ScalarTypeArrayList LONG = new ScalarTypeArrayList("bigint", DocPropertyType.LONG, ArrayElementConverter.LONG);
private static ScalarTypeArrayList INTEGER = new ScalarTypeArrayList("integer", DocPropertyType.INTEGER, ArrayElementConverter.INTEGER);
@@ -50,7 +50,7 @@ public class TestDbArray_basic extends BaseTestCase {
List<EArrayBean> list = query.findList();
assertThat(query.getGeneratedSql()).contains(" t0.other_ids @> array[?,?]::integer[] ");
assertThat(query.getGeneratedSql()).contains(" t0.other_ids @> array[?,?]::bigint[] ");
assertThat(query.getGeneratedSql()).contains(" t0.uids @> array[?] ");
assertThat(query.getGeneratedSql()).contains(" t0.phone_numbers @> array[?] ");
assertThat(query.getGeneratedSql()).contains(" coalesce(cardinality(t0.phone_numbers),0) <> 0");