<?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 tMap and writing to PostgreSQL Interval column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237003#M25566</link>
    <description>Hello.&lt;BR /&gt;I'm trying to write to an &lt;B&gt;Interval&lt;/B&gt; column&lt;BR /&gt;in a PostgreSQL DB. My setup is fairly simple:&lt;BR /&gt;&lt;PRE&gt;tFileInputDelimited --row1-&amp;gt; tMap --out1-&amp;gt; tPostgresqlOutput&lt;/PRE&gt;&lt;BR /&gt;The data I'm trying to write looks like &lt;B&gt;1:30&lt;/B&gt; or &lt;B&gt;0:30&lt;/B&gt;,&lt;BR /&gt;I read it in as a string and in tMap I convert it to&lt;BR /&gt;time like this:&lt;BR /&gt;&lt;PRE&gt;TalendDate.isDate(row1.timecol, "H:mm")&lt;BR /&gt;?TalendDate.parseDate("H:mm", row1.timecol)&lt;BR /&gt;:null&lt;/PRE&gt;&lt;BR /&gt;and this is what I'm trying to insert into an&lt;BR /&gt;Interval column in the DB.&amp;nbsp; The error I'm&lt;BR /&gt;getting is:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;ERROR: invalid input syntax for type interval: "1970-01-01 00:00:00.000000 +02:00:00"ERROR: current transaction is aborted, commands ignored until end of transaction block&lt;/PRE&gt;&lt;BR /&gt;How should I write to the Interval column?&lt;BR /&gt;JB</description>
    <pubDate>Tue, 28 Apr 2015 10:42:33 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-04-28T10:42:33Z</dc:date>
    <item>
      <title>tMap and writing to PostgreSQL Interval column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237003#M25566</link>
      <description>Hello.&lt;BR /&gt;I'm trying to write to an &lt;B&gt;Interval&lt;/B&gt; column&lt;BR /&gt;in a PostgreSQL DB. My setup is fairly simple:&lt;BR /&gt;&lt;PRE&gt;tFileInputDelimited --row1-&amp;gt; tMap --out1-&amp;gt; tPostgresqlOutput&lt;/PRE&gt;&lt;BR /&gt;The data I'm trying to write looks like &lt;B&gt;1:30&lt;/B&gt; or &lt;B&gt;0:30&lt;/B&gt;,&lt;BR /&gt;I read it in as a string and in tMap I convert it to&lt;BR /&gt;time like this:&lt;BR /&gt;&lt;PRE&gt;TalendDate.isDate(row1.timecol, "H:mm")&lt;BR /&gt;?TalendDate.parseDate("H:mm", row1.timecol)&lt;BR /&gt;:null&lt;/PRE&gt;&lt;BR /&gt;and this is what I'm trying to insert into an&lt;BR /&gt;Interval column in the DB.&amp;nbsp; The error I'm&lt;BR /&gt;getting is:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;ERROR: invalid input syntax for type interval: "1970-01-01 00:00:00.000000 +02:00:00"ERROR: current transaction is aborted, commands ignored until end of transaction block&lt;/PRE&gt;&lt;BR /&gt;How should I write to the Interval column?&lt;BR /&gt;JB</description>
      <pubDate>Tue, 28 Apr 2015 10:42:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237003#M25566</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-04-28T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and writing to PostgreSQL Interval column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237004#M25567</link>
      <description>Hello.
&lt;BR /&gt;Furthermore, I was testing around reading data
&lt;BR /&gt;from a table with an 
&lt;B&gt;Interval&lt;/B&gt; type column and 
&lt;BR /&gt;writing it to a table of same kind:
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;tPostgresqlInput --row1-&amp;gt; tMap --out1-&amp;gt; tPostgresqlOutput&lt;BR /&gt;&lt;/PRE&gt;
&lt;BR /&gt;Reading the 
&lt;B&gt;Interval&lt;/B&gt; data is fine but writing 
&lt;BR /&gt;produces the same error:
&lt;BR /&gt;
&lt;PRE&gt;ERROR: invalid input syntax for type interval: "1970-01-01 00:30:00.000000 +02:00:00"ERROR: current transaction is aborted, commands ignored until end of transaction block&lt;/PRE&gt;
&lt;BR /&gt;Repository schema in tPostgresqlInput and 
&lt;BR /&gt;-Output suggest 
&lt;B&gt;Date&lt;/B&gt; type with 49 length
&lt;BR /&gt;and 
&lt;B&gt;dd-MM-yyyy&lt;/B&gt; pattern. The DB type is 
&lt;BR /&gt;
&lt;B&gt;INTERVAL&lt;/B&gt;.
&lt;BR /&gt;Any solutions or suggestions?
&lt;BR /&gt;Thanks.
&lt;BR /&gt;JB</description>
      <pubDate>Wed, 29 Apr 2015 09:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237004#M25567</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-04-29T09:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: tMap and writing to PostgreSQL Interval column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237005#M25568</link>
      <description>I circumvented this by creating another column in 
&lt;BR /&gt;the target table with type 
&lt;B&gt;time without time zone&lt;/B&gt; 
&lt;BR /&gt;from which I 
&lt;B&gt;UPDATE&lt;/B&gt; the data to type 
&lt;B&gt;interval&lt;/B&gt;
&lt;BR /&gt;column.&amp;nbsp; It works but if you know the answer, let
&lt;BR /&gt;me know.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;JB</description>
      <pubDate>Fri, 05 Jun 2015 11:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-and-writing-to-PostgreSQL-Interval-column/m-p/2237005#M25568</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-06-05T11:10:02Z</dc:date>
    </item>
  </channel>
</rss>

