From 322655ae68993d189918a6b904fa7f8c74d996b0 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Thu, 18 Apr 2024 17:01:22 +0900 Subject: [PATCH] IFNULL -> NVL --- src/main/resources/sql/mapper/file-mapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/sql/mapper/file-mapper.xml b/src/main/resources/sql/mapper/file-mapper.xml index 55f5dc6..55ecb7c 100644 --- a/src/main/resources/sql/mapper/file-mapper.xml +++ b/src/main/resources/sql/mapper/file-mapper.xml @@ -61,7 +61,7 @@ SELECT A.*, FILE_PATH URL SELECT NEW_ID, CONCAT(DIR, NEW_ID, '.', #{file.extension}) PATH FROM ( - SELECT IFNULL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID + SELECT NVL(MAX(FILE_ID) + 1, CONCAT(THIS_DAY, '00001')) NEW_ID FROM TB_FILE A, () B WHERE FILE_ID LIKE CONCAT(THIS_DAY, '%') ) T1, (