<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292490#M65559</link>
    <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I am not sure where I can locate the code tab?I used the "Test" button in the expression builder and encountered the error.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I mean the generated code tab. (see my screenshot) 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;can I ask if I want to insert date: 01-Jan-1970 instead of null value for date 0000-00-00,&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, if the data type of column is Date, set the expression as: 
&lt;BR /&gt; 
&lt;PRE&gt;row1.story_date.getTime()&amp;lt;0?TalendDate.parseDate("yyyy-MM-dd","1970-01-01"):row1.story_date&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
    <pubDate>Wed, 23 Dec 2009 02:27:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-12-23T02:27:35Z</dc:date>
    <item>
      <title>[resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292485#M65554</link>
      <description>I am wondering if anyone of you know why when using Talend to output the data from MySQL to Oracle when MySQL date is 0000-00-00, it imported into Oracle as Dec 13, 2003.&lt;BR /&gt;Any help is appreciated! Thanks!</description>
      <pubDate>Sat, 16 Nov 2024 13:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292485#M65554</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292486#M65555</link>
      <description>Hello 
&lt;BR /&gt;Please see the related 1041.
&lt;BR /&gt;You can set dates prior to January 1st, 1970 or null if the date is a 'zero' date.
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Mon, 21 Dec 2009 05:45:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292486#M65555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-21T05:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292487#M65556</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for your help! I looked into the Forum topic 1041 and entered the expression provided in the forum in my tmap as follows: 
&lt;BR /&gt;row1.story_date.getTime()&amp;lt;0?null:row1.story_date 
&lt;BR /&gt;However, I encountered the following error: 
&lt;BR /&gt;"Exception in thread "main" java.lang.Error: Unresolved compilation problem:" 
&lt;BR /&gt;From my tmap, row1.story_date is the date which contains 0000-00-00 00:00:00 data. 
&lt;BR /&gt;Can you please give me additional guidelines as this is the first time I work on Talend. 
&lt;BR /&gt;Thanks again!!</description>
      <pubDate>Mon, 21 Dec 2009 20:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292487#M65556</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-12-21T20:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292488#M65557</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;"Exception in thread "main" java.lang.Error: Unresolved compilation problem:"&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Go to the code tab and see which line occurs the compilation error.
&lt;BR /&gt;What's data type of story_date in your schema? It should be Date type here.
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 22 Dec 2009 01:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292488#M65557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-22T01:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292489#M65558</link>
      <description>Hi Shong, 
&lt;BR /&gt;I am not sure where I can locate the code tab? I used the "Test" button in the expression builder and encountered the error. 
&lt;BR /&gt;In addition, can I ask if I want to insert date: 01-Jan-1970 instead of null value for date 0000-00-00, will the following code works: 
&lt;BR /&gt;row1.story_date.getTime()&amp;lt;0?1970-01-01:row1.story_date 
&lt;BR /&gt;Thanks again! Have a nice day!</description>
      <pubDate>Tue, 22 Dec 2009 18:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292489#M65558</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-12-22T18:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292490#M65559</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I am not sure where I can locate the code tab?I used the "Test" button in the expression builder and encountered the error.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I mean the generated code tab. (see my screenshot) 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;can I ask if I want to insert date: 01-Jan-1970 instead of null value for date 0000-00-00,&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, if the data type of column is Date, set the expression as: 
&lt;BR /&gt; 
&lt;PRE&gt;row1.story_date.getTime()&amp;lt;0?TalendDate.parseDate("yyyy-MM-dd","1970-01-01"):row1.story_date&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 23 Dec 2009 02:27:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292490#M65559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-23T02:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292491#M65560</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks again for your helping me!! 
&lt;BR /&gt;For the CODE tab, I clicked on it and didn't seem to have compilation error. When I executed the job, the date is transformed correctly to null into Oracle. 
&lt;BR /&gt;Question 
&lt;BR /&gt;====== 
&lt;BR /&gt;What is the use of the "Test" button in expression builder? Because everytime I used this "Test" button in the expression builder, I encountered compilation error? How should I compile the job and make sure the code I used is correct? 
&lt;BR /&gt;Thanks again!!</description>
      <pubDate>Wed, 23 Dec 2009 18:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292491#M65560</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-12-23T18:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292492#M65561</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;What is the use of the "Test" button in expression builder? Because everytime I used this "Test" button in the expression builder, I encountered compilation error? How should I compile the job and make sure the code I used is correct?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Go to the 'code' tab and see if there are some compilation error, if not the code is correct. About 'Test' button, it check the result of the expresion you set. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 24 Dec 2009 03:07:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292492#M65561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-24T03:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292493#M65562</link>
      <description>Hi Shong,
&lt;BR /&gt;Thanks for your detailed explanations!</description>
      <pubDate>Sun, 27 Dec 2009 10:32:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292493#M65562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-12-27T10:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] MySQL Default Date 0000-00-00 output to Oracle as Dec 13 2003</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292494#M65563</link>
      <description>&lt;P&gt;Hello. I have same problem with dates from AS400.. I see no screenshoots in your post how to do this in t-map..Thx&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 09:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-MySQL-Default-Date-0000-00-00-output-to-Oracle-as-Dec/m-p/2292494#M65563</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-13T09:46:59Z</dc:date>
    </item>
  </channel>
</rss>

