Hi Isomorphic,
I found a minor bug which occurs when updating "date" field in Oracle DB (using PostgreSQL works fine).
ds.xml:
serverObject:
Query:
Although the type of the field is "date", time is also transmitted.
Docs about it: DateFormatAndStorage
Best regards
Pavo
I found a minor bug which occurs when updating "date" field in Oracle DB (using PostgreSQL works fine).
ds.xml:
Code:
<field name="DATE_FIELD" type="date">
Code:
Map<String, Object> valueMap = new HashMap<String, Object>(); valueMap.put("DATE_FIELD", new Date()); DSRequest updateReq = new DSRequest("DS", DataSource.OP_UPDATE); updateReq.setValues(valueMap); updateReq.setAllowMultiUpdate(true); updateReq.execute();
Code:
UPDATE DS SET DATE_FIELD=TO_DATE('2019-05-23 17:22:49','YYYY-MM-DD HH24:MI:SS')....
Docs about it: DateFormatAndStorage
Best regards
Pavo
Comment