From c868d8a23b1d5f87109e13ff0630477b3ea9893e Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Tue, 22 Oct 2024 19:00:52 +1300 Subject: [PATCH] Fix test for Postgres TestDistinctOnQuery --- .../src/test/java/org/tests/query/TestDistinctOnQuery.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebean-test/src/test/java/org/tests/query/TestDistinctOnQuery.java b/ebean-test/src/test/java/org/tests/query/TestDistinctOnQuery.java index 6602162336..4a6151c7df 100644 --- a/ebean-test/src/test/java/org/tests/query/TestDistinctOnQuery.java +++ b/ebean-test/src/test/java/org/tests/query/TestDistinctOnQuery.java @@ -65,7 +65,7 @@ void distinctOnSubQuery() { assertThat(lines).isNotEmpty(); List sql = LoggedSql.stop(); assertThat(sql).hasSize(1); - assertThat(sql.get(0)).contains("select t0.id, t0.product_id, t0.order_qty, t0.ship_qty, t0.id from o_order_detail t0 where t0.id in (select distinct on (t0.product_id) t0.id from o_order_detail t0 order by t0.product_id, t0.updtime desc limit 10) order by t0.cretime"); + assertThat(sql.get(0)).contains("select t0.id, t0.product_id, t0.order_qty, t0.ship_qty, t0.cretime from o_order_detail t0 where t0.id in (select distinct on (t0.product_id) t0.id from o_order_detail t0 order by t0.product_id, t0.updtime desc limit 10) order by t0.cretime"); } @ForPlatform({Platform.POSTGRES, Platform.YUGABYTE})