View Issue Details

IDProjectCategoryView StatusLast Update
0001456SymmetricDSBugpublic2024-11-06 19:09
Reporterszambaux Assigned To 
Prioritynormal 
Status closedResolutionwon't fix 
Product Version3.5.10 
Summary0001456: DbImport date problem Oracle 11G
Descriptionsend 0000-00-00 00:00:00 in XML get 30/11/0003 00:00:00,000000000 in Oracle database
Steps To ReproduceTry to execute:
/opt/symmetric/bin/dbimport --format XML --drop-if-exists -p /opt/symmetric/conf/symmetric.properties /liveUpdate/CLIENT.xml

CLIENT.xml:
structure:
<?xml version="1.0" encoding="UTF-8"?><database name="eseason"><table name="CLIENT">
<column name="CLADHESFID" type="TIMESTAMP" size="0" required="false"/>
<column name="CLVALIDFID" type="TIMESTAMP" size="0" required="false"/>
...
<field name="CLADHESFID">0000-00-00 00:00:00</field>
<field name="CLVALIDFID">0000-00-00 00:00:00</field>
...
Tagsdata conversion, dbimport/dbexport

Activities

chenson

2013-10-28 22:26

administrator   ~0000381

Is that even a valid datetime in Oracle? What value should the result be?

szambaux

2013-10-30 16:51

reporter   ~0000383

it's not a valid datetime for Oracle, but maybe it could be better to set null instead of 30/11/0003 00:00:00,000000000

emiller

2024-11-06 19:08

developer   ~0002522

You can add the zeroDateTimeBehavior=convertToNull parameter to the MySQL db.url so that these zero dates will export as null values.

josh-a-hicks

2024-11-06 19:09

developer   ~0002523

More details on MySQL dates

https://www.jumpmind.com/blog/blog/dialects/filtering-dates-in-mysql/

Issue History

Date Modified Username Field Change
2013-10-28 17:19 szambaux New Issue
2013-10-28 22:26 chenson Note Added: 0000381
2013-10-30 16:51 szambaux Note Added: 0000383
2019-04-22 14:15 elong Tag Attached: data conversion
2019-04-22 14:15 elong Tag Attached: dbimport/dbexport
2024-11-06 19:08 emiller Status new => closed
2024-11-06 19:08 emiller Resolution open => won't fix
2024-11-06 19:08 emiller Note Added: 0002522
2024-11-06 19:09 josh-a-hicks Note Added: 0002523