From d5e685885a9ed16abb0c7aed6849798a49db0130 Mon Sep 17 00:00:00 2001 From: rma-rripken <89810919+rma-rripken@users.noreply.github.com> Date: Thu, 28 Dec 2023 16:45:07 -0800 Subject: [PATCH] Updated mock query to match new dialect syntax --- cwms-data-api/src/test/resources/ratings_db.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cwms-data-api/src/test/resources/ratings_db.txt b/cwms-data-api/src/test/resources/ratings_db.txt index 6f0dfef65..47b4a1592 100644 --- a/cwms-data-api/src/test/resources/ratings_db.txt +++ b/cwms-data-api/src/test/resources/ratings_db.txt @@ -22,12 +22,19 @@ > ----- > 18.1.1 @ rows: 1 -# This is always called +# This is always called in 11G dialect select "v0" "VERSION" from (select "x"."v0", rownum "rn" from (select "CWMS_20"."AV_DB_CHANGE_LOG"."VERSION" "v0" from "CWMS_20"."AV_DB_CHANGE_LOG" order by "CWMS_20"."AV_DB_CHANGE_LOG"."VERSION_DATE" desc) "x" where rownum <= (0 + ?)) where "rn" > 0 order by "rn"; > VERSION > ------- > 18.1.1 @ rows: 1 +# This is always called in 18C dialect +select "CWMS_20"."AV_DB_CHANGE_LOG"."VERSION" from "CWMS_20"."AV_DB_CHANGE_LOG" order by "CWMS_20"."AV_DB_CHANGE_LOG"."VERSION_DATE" desc fetch next ? rows only +> VERSION +> ------- +> 18.1.1 +@ rows: 1 + select count(*) from "CWMS_20"."AV_CLOB" join "CWMS_20"."AV_OFFICE" on "CWMS_20"."AV_CLOB"."OFFICE_CODE" = "CWMS_20"."AV_OFFICE"."OFFICE_CODE" where ((regexp_like("CWMS_20"."AV_CLOB"."ID", ?)) and "CWMS_20"."AV_OFFICE"."OFFICE_ID" like ?); > count > -----