<?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 Issue using tPostgresqlOutput to create a table with big decimal : NUMERIC,0 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347314#M114589</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried with different versions of TOS DI (6.4.1, 6.4.0, 6.3.2, 6.2.1) but the code generated to create a table when choosing &lt;STRONG&gt;"Drop table if exists then create it"&lt;/STRONG&gt; is always :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;...\"Article\" INT4 ,\"Annee_2014\" &lt;STRONG&gt;NUMERIC,0&lt;/STRONG&gt; ,\"Annee_2015\" &lt;STRONG&gt;NUMERIC,0...&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A Big Decimal is casted in a NUMERIC DB type field but with a 0 behind (default value? precision?). This SQL statement retrieve a "org.postgresql.util.PSQLException: ERROR: syntax error at or near "0"" at each time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;According to PostgreSQL manuals, a NUMERIC field may have a precision or a scale but between &lt;STRONG&gt;brackets&lt;/STRONG&gt;, not a &lt;STRONG&gt;coma&lt;/STRONG&gt; :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.postgresql.org/docs/9.6/static/datatype-numeric.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.postgresql.org/docs/9.6/static/datatype-numeric.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use Talend with the tPostgresqlOutput and PostgreSQL for a while.... I don't understand...&lt;/P&gt; 
&lt;P&gt;Any clue please?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 921px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrKM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144420i80E70B5935BFD6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrKM.png" alt="0683p000009LrKM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 09:10:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-28T09:10:12Z</dc:date>
    <item>
      <title>Issue using tPostgresqlOutput to create a table with big decimal : NUMERIC,0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347314#M114589</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried with different versions of TOS DI (6.4.1, 6.4.0, 6.3.2, 6.2.1) but the code generated to create a table when choosing &lt;STRONG&gt;"Drop table if exists then create it"&lt;/STRONG&gt; is always :&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;...\"Article\" INT4 ,\"Annee_2014\" &lt;STRONG&gt;NUMERIC,0&lt;/STRONG&gt; ,\"Annee_2015\" &lt;STRONG&gt;NUMERIC,0...&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A Big Decimal is casted in a NUMERIC DB type field but with a 0 behind (default value? precision?). This SQL statement retrieve a "org.postgresql.util.PSQLException: ERROR: syntax error at or near "0"" at each time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;According to PostgreSQL manuals, a NUMERIC field may have a precision or a scale but between &lt;STRONG&gt;brackets&lt;/STRONG&gt;, not a &lt;STRONG&gt;coma&lt;/STRONG&gt; :&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.postgresql.org/docs/9.6/static/datatype-numeric.html" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.postgresql.org/docs/9.6/static/datatype-numeric.html&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I use Talend with the tPostgresqlOutput and PostgreSQL for a while.... I don't understand...&lt;/P&gt; 
&lt;P&gt;Any clue please?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 921px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrKM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144420i80E70B5935BFD6F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrKM.png" alt="0683p000009LrKM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:10:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347314#M114589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue using tPostgresqlOutput to create a table with big decimal : NUMERIC,0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347315#M114590</link>
      <description>Hi 
&lt;BR /&gt;You need to specify the length and precision of column on the schema if you want to create the table on tPostgresqlOutput component. 
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 28 Nov 2017 09:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347315#M114590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue using tPostgresqlOutput to create a table with big decimal : NUMERIC,0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347316#M114591</link>
      <description>&lt;P&gt;PostgreSQL don't require precision or scale :&lt;/P&gt;
&lt;P&gt;"without any precision or scale creates a column in which numeric values of any precision and scale can be stored, up to the implementation limit on precision."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is unfortunate that Talend return an error whereas the SQL statement will be correct without the 0 added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whatever, thanks a lot Shong for your quick answer!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-using-tPostgresqlOutput-to-create-a-table-with-big-decimal/m-p/2347316#M114591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:53:34Z</dc:date>
    </item>
  </channel>
</rss>

