@@ -191,13 +191,13 @@ protected void insert(Connection conn, CodeTableConfig codeTableConfig, CodeDto
191191 + "?,"
192192 + "?,"
193193 + (Boolean .TRUE .equals (codeTableConfig .getUseDisplayOrder ()) ? "?," : "" )
194- + (dto .getEffectiveDate () == null ? "trunc(SYSDATE) ," : "?," )
194+ + (dto .getEffectiveDate () == null ? "CURRENT_DATE ," : "?," )
195195 + (dto .getExpiryDate () == null ? "to_date('9999-12-31','YYYY-MM-DD')," : "?," )
196196 + (Boolean .TRUE .equals (codeTableConfig .getUseRevisionCount ()) ? "1," : "" )
197197 + "?,"
198- + "SYSDATE ,"
198+ + "CURRENT_DATE ,"
199199 + "?,"
200- + "SYSDATE "
200+ + "CURRENT_DATE "
201201 + ")" ;
202202 }
203203
@@ -248,7 +248,7 @@ protected void update(Connection conn, CodeTableConfig codeTableConfig, CodeDto
248248 ? "REVISION_COUNT = REVISION_COUNT + 1, "
249249 : "" )
250250 + "UPDATE_USER = ?, "
251- + "UPDATE_TIMESTAMP = SYSDATE "
251+ + "UPDATE_TIMESTAMP = CURRENT_DATE "
252252 + "WHERE " + codeTableConfig .getCodeTableName () + " = ?" ;
253253
254254 }
@@ -287,11 +287,11 @@ protected void expire(Connection conn, CodeTableConfig codeTableConfig, CodeDto
287287 String expireSql = codeTableConfig .getExpireSql ();
288288
289289 if (expireSql == null || expireSql .trim ().length () == 0 ) {
290- expireSql = "UPDATE " + codeTableConfig .getCodeTableName () + " SET EXPIRY_DATE = trunc(SYSDATE) , "
290+ expireSql = "UPDATE " + codeTableConfig .getCodeTableName () + " SET EXPIRY_DATE = CURRENT_DATE , "
291291 + (Boolean .TRUE .equals (codeTableConfig .getUseRevisionCount ())
292292 ? "REVISION_COUNT = REVISION_COUNT + 1, "
293293 : "" )
294- + "UPDATE_USER = ?, UPDATE_TIMESTAMP = SYSDATE WHERE " + codeTableConfig .getCodeTableName ()
294+ + "UPDATE_USER = ?, UPDATE_TIMESTAMP = CURRENT_DATE WHERE " + codeTableConfig .getCodeTableName ()
295295 + " = ?" ;
296296
297297 }
0 commit comments