<?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 Reserved word in my postgres query throws an error in tPostgresqlRow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209401#M8245</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm very new on Talend Open Studio for Data Integration version 7.&amp;nbsp; I have a query that throws an error.&amp;nbsp; How do you resolved reserved words in the query that runs throus tPostgresqlRow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select "current_schema", src_id from src_table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 16:02:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-01T16:02:50Z</dc:date>
    <item>
      <title>Reserved word in my postgres query throws an error in tPostgresqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209401#M8245</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm very new on Talend Open Studio for Data Integration version 7.&amp;nbsp; I have a query that throws an error.&amp;nbsp; How do you resolved reserved words in the query that runs throus tPostgresqlRow?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select "current_schema", src_id from src_table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 16:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209401#M8245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved word in my postgres query throws an error in tPostgresqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209402#M8246</link>
      <description>&lt;P&gt;You need to escape the double quotes that you use to escape the reserved words. So, something like this....&lt;/P&gt;
&lt;PRE&gt;"Select \"current_schema\", src_id from src_table"&lt;/PRE&gt;
&lt;P&gt;The reason for this is that the queries used in Talend are actually Java Strings. Java Strings are surrounded by double quotes. To include a double quote, you need to escape it with a \.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 16:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209402#M8246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T16:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved word in my postgres query throws an error in tPostgresqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209403#M8247</link>
      <description>&lt;P&gt;Thank you...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I also have a followup question. &amp;nbsp;&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="etl1.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2cu.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149192iE872FD3594757080/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2cu.jpg" alt="0683p000009M2cu.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In tDBInput_1, I select all current_schema and src_sys_id and pass it through tFlowtoIterate_1.&amp;nbsp; Then I have tDBInput_4 that selects my input table and use the current_schema from&amp;nbsp;&lt;SPAN&gt;tDBInput_1.&amp;nbsp; Whenever I run this, it's always null. I'm going crazy figuring this out.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl2.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2r6.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136058iCDFB9B461D5025DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2r6.jpg" alt="0683p000009M2r6.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 16:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209403#M8247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T16:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reserved word in my postgres query throws an error in tPostgresqlRow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209404#M8248</link>
      <description>&lt;P&gt;There are a couple of things wrong where you use your globalMap. First of all, the tFlowToIterate names the globalMap key using the row that feeds it and the column name. The row that feeds it is row4 not row1. The other issue is that you will need to cast that value from Object. The globalMap will default all objects to Object. To do this, just use the following code....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;((String)globalMap.get("row4.current_schema"))&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Mar 2019 17:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reserved-word-in-my-postgres-query-throws-an-error-in/m-p/2209404#M8248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T17:46:24Z</dc:date>
    </item>
  </channel>
</rss>

