From 7172ee67248c791a3447161d50b7b5756990cf4f Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 22 Dec 2023 18:03:01 +0900 Subject: [PATCH] =?UTF-8?q?databaseIdProvider=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/resources/spring/context-datasource.xml | 11 ++++++++++- src/test/resources/sql/mapper/base/utility.xml | 15 +++++---------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/test/resources/spring/context-datasource.xml b/src/test/resources/spring/context-datasource.xml index 971a5b9..726cf5f 100644 --- a/src/test/resources/spring/context-datasource.xml +++ b/src/test/resources/spring/context-datasource.xml @@ -20,11 +20,20 @@ --> + + + + oracle + mariadb + + + + + p:databaseIdProvider-ref="databaseIdProvider"/> diff --git a/src/test/resources/sql/mapper/base/utility.xml b/src/test/resources/sql/mapper/base/utility.xml index c927282..7f335db 100644 --- a/src/test/resources/sql/mapper/base/utility.xml +++ b/src/test/resources/sql/mapper/base/utility.xml @@ -20,19 +20,14 @@ SELECT FOUND_ROWS() TOT_CNT - -DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s') - -DATE_FORMAT(CURRENT_DATE, '%Y%m%d') - - +DATE_FORMAT(CURRENT_TIMESTAMP, '%Y%m%d%H%i%s') +TO_CHAR(CURRENT_TIMESTAMP, 'YYYYMMDDHH24MISS') SELECTNOW FROM DUAL +DATE_FORMAT(CURRENT_DATE, '%Y%m%d') +TO_CHAR(CURRENT_DATE, 'YYYYMMDD') + SELECTTODAY FROM DUAL NVL(#{thisDay},)