Performed the following test in Oracle:
The properties file contains the following definition:
tdmweb.TDMPublishService.sqlOutput.keywords.ORACLE=SYS_GUID(), SYSDATE, CURRENT_DATE, CURRENT_TIMESTAMP, SYSTIMESTAMP, UID, USER
The Oracle table is created, including the use of a default value:
CREATE TABLE SCRAMBLE.JFB_ORA_TEST143_CURRENTDATE (
ID NUMBER(10),
DEF_CURRENTDATE DATE DEFAULT CURRENT_DATE)
When generating the SQL query in a file and run it manually, everything works fine.
"INSERT INTO "SCRAMBLE"."JFB_ORA_TEST143_CURRENTDATE" ("ID","DEF_CURRENTDATE") VALUES (1,CURRENT_DATE);"
When generating the data directly in the table, the job fails with the following message:
"Value for DEF_CURRENTDATE is invalid for datatype, value:CURRENT_DATE"
The expected result should be the same in both ways. CURRENT_DATE is not treated correctly when generating data into the table.
TDM Portal 4.11.98.0 and below for both Windows and Docker.
A fix has been provided in TDM Portal 4.11.110.0 for Windows and Docker.
The new release is available for download at the Test Data Manager (TDM) Support Patches page.