From 623c8307b5f8b6368edfb921906350ecb25ccb1f Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Fri, 22 Dec 2023 18:03:51 +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/main/resources/sql/mapper/base/utility.xml | 15 +++++---------- src/test/resources/spring/context-datasource.xml | 11 ++++++++++- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/main/resources/sql/mapper/base/utility.xml b/src/main/resources/sql/mapper/base/utility.xml index c927282..7f335db 100644 --- a/src/main/resources/sql/mapper/base/utility.xml +++ b/src/main/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},) 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"/>