<?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: tpostgresqlRow and return values? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353835#M119937</link>
    <description>Hi,&lt;BR /&gt;If you use &lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt; t&amp;lt;DB&amp;gt;Row to execute a select query, you have to use a &lt;A href="https://help.talend.com/search/all?query=tParseRecordSet&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tParseRecordSet&lt;/A&gt; after t&amp;lt;DB&amp;gt;Row to parse the recordset.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Thu, 11 Sep 2014 05:17:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-11T05:17:35Z</dc:date>
    <item>
      <title>tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353833#M119935</link>
      <description>Hello.&lt;BR /&gt;I'm trying to figure out how to catch a return value from of a&lt;BR /&gt;PostgreSQL function using &lt;B&gt;tPostgresqlRow &lt;/B&gt;component. My job&lt;BR /&gt;is roughly:&lt;BR /&gt;&lt;PRE&gt;tFileList_1 --(iterate1)-&amp;gt; tFileInputDelimited_1 --(row1)-&amp;gt; tMap_1 --(row2)-&amp;gt; tPostgresqlOutput_1&lt;/PRE&gt;&lt;BR /&gt;so pretty much the definition of ETL, eh? &lt;BR /&gt;Anyway, after (each iteration) I have loaded the data to a table,&lt;BR /&gt;I should call a PostgreSQL function to process the loaded data:&lt;BR /&gt;&lt;PRE&gt;CREATE OR REPLACE FUNCTION flush_the_bin(customer character varying) RETURNS integer AS&lt;BR /&gt;--...&lt;BR /&gt;RETURN some_code;&lt;/PRE&gt;&lt;BR /&gt;In SQL I would: &lt;BR /&gt;&lt;PRE&gt;SELECT flush_the_bin('Customer Inc.');&lt;/PRE&gt;&lt;BR /&gt;I assume the call to the function is done with tPostgresqlRow that&lt;BR /&gt;is connected to &lt;B&gt;tFileList_1&lt;/B&gt; with another &lt;B&gt;iterate &lt;/B&gt;arrow. But how &lt;BR /&gt;do I catch the return value from the called function?&lt;BR /&gt;JB</description>
      <pubDate>Wed, 10 Sep 2014 15:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353833#M119935</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-09-10T15:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353834#M119936</link>
      <description>You could call this procedure indeed with a tPostgresqlInput component this way. Because of the select you will get an ResultSet and thats what the input component depends on. The schema in this case has only one column (name does not matter) and the data type Integer.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;PRE&gt;SELECT flush_the_bin('" + ((String) globalMap.get("tFileList_1_CURRENT_FILE")) + "')&lt;/PRE&gt;
&lt;BR /&gt;Please avoid the ; at the end, this will cause problems in PostgreSQL. This example provides the file name of one file read be tFileList. You can easily adapt that for any other source of parameters.</description>
      <pubDate>Wed, 10 Sep 2014 15:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353834#M119936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-10T15:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353835#M119937</link>
      <description>Hi,&lt;BR /&gt;If you use &lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt; t&amp;lt;DB&amp;gt;Row to execute a select query, you have to use a &lt;A href="https://help.talend.com/search/all?query=tParseRecordSet&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tParseRecordSet&lt;/A&gt; after t&amp;lt;DB&amp;gt;Row to parse the recordset.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 11 Sep 2014 05:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353835#M119937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-11T05:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353836#M119938</link>
      <description>My suggested new tPostgresqlInput component should be triggered in your case starting from tPostgresqlOutput_1 and with OnComponentOk. 
&lt;BR /&gt;I guess there might be a problem because as long as I know you cannot do any insert/updates within a select. We should think about this if it the case. At the moment I see only an ugly solution with tJDBCSP.</description>
      <pubDate>Thu, 11 Sep 2014 07:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353836#M119938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-11T07:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353837#M119939</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;You could call this procedure indeed with a tPostgresqlInput component this way. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Thank you for the tip. I implemented it with 
&lt;B&gt;tPostgresqlInput&lt;/B&gt; indeed. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;My suggested new tPostgresqlInput component should be triggered in your case starting from tPostgresqlOutput_1 and with OnComponentOk.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I attached the 
&lt;B&gt;tPostgresqlinput&lt;/B&gt; to 
&lt;B&gt;tFileList&lt;/B&gt; with an 
&lt;B&gt;iterate&lt;/B&gt; arrow and 
&lt;BR /&gt;that seemed to work also. 
&lt;BR /&gt; 
&lt;PRE&gt;tFileList_1 --(iterate1)-&amp;gt; tFileInputDelimited_1 --(row1)-&amp;gt; tMap_1 --(row2)-&amp;gt; tPostgresqlOutput_1&lt;BR /&gt; &amp;nbsp; &amp;nbsp; \&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;--------(iterate2)-&amp;gt; tPostgresqlInput_1 --(row2)-&amp;gt; tMap2 --(row3)-&amp;gt; ...&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I guess there might be a problem because as long as I know you cannot do any insert/updates within a select.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;That isn't a problem. 
&lt;BR /&gt;Thank you again. 
&lt;BR /&gt;JB</description>
      <pubDate>Fri, 12 Sep 2014 09:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353837#M119939</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-09-12T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: tpostgresqlRow and return values?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353838#M119940</link>
      <description>&lt;P&gt;I use t&amp;lt;DB&amp;gt;Row to execute a select query, but after use a tParseRecordSet with t&amp;lt;DB&amp;gt;Row to parse the recordset.but how to retrieve column data from tParseRecordSet&amp;nbsp; data i am getting error of column not found&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 07:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tpostgresqlRow-and-return-values/m-p/2353838#M119940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-24T07:07:57Z</dc:date>
    </item>
  </channel>
</rss>

