<?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 SQLException with TOS 2.2.0GA_r6191 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQLException-with-TOS-2-2-0GA-r6191/m-p/2305404#M77059</link>
    <description>Hi everyone, 
&lt;BR /&gt;I have problem with the new TOS and the way sql queries are handled. 
&lt;BR /&gt;I'm using informix database and when I setup a componenent InfomixOutput, it generates the following statement: 
&lt;BR /&gt;"UPDATE \"" + "test" + "\" SET \"newColumn1\"=? WHERE \"newColumn\"=?" 
&lt;BR /&gt;--&amp;gt; which produce a syntax error: 
&lt;BR /&gt;Exception in component tInformixOutput_1 
&lt;BR /&gt;java.sql.SQLException: A syntax error has occurred. 
&lt;BR /&gt; at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:397) 
&lt;BR /&gt;and when I setup the very same thing with TOS 2.1.2, the statement is : 
&lt;BR /&gt;"UPDATE " + "test" + " SET b=? WHERE a=?" 
&lt;BR /&gt;in fact tInformixOutput_begin.javajet has change with the new version into this: 
&lt;BR /&gt; 
&lt;BR /&gt;for(Column replacement:replacedColumns){ 
&lt;BR /&gt; insertColName.append("\\\""+replacement.getName()+"\\\""+suffix); 
&lt;BR /&gt; insertValueStmt.append(replacement.getSqlStmt()+suffix); 
&lt;BR /&gt; if(!colStmt.getColumn().isKey()){ 
&lt;BR /&gt; if(!firstNoneKey){ 
&lt;BR /&gt; updateSetStmt.append(","); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; firstNoneKey = false; 
&lt;BR /&gt; } 
&lt;BR /&gt; updateSetStmt.append("\\\""+replacement.getName()+"\\\""); 
&lt;BR /&gt; updateSetStmt.append("=" + replacement.getSqlStmt()); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; if(!firstKey){ 
&lt;BR /&gt; updateWhereStmt.append(" AND "); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; firstKey = false; 
&lt;BR /&gt; } 
&lt;BR /&gt; updateWhereStmt.append("\\\""+replacement.getName()+"\\\""); 
&lt;BR /&gt; updateWhereStmt.append("=" + replacement.getSqlStmt()); 
&lt;BR /&gt; } 
&lt;BR /&gt; counterReplace++; 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt;Am I completely WRONG? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for help 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Sat, 16 Nov 2024 14:32:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:32:21Z</dc:date>
    <item>
      <title>SQLException with TOS 2.2.0GA_r6191</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQLException-with-TOS-2-2-0GA-r6191/m-p/2305404#M77059</link>
      <description>Hi everyone, 
&lt;BR /&gt;I have problem with the new TOS and the way sql queries are handled. 
&lt;BR /&gt;I'm using informix database and when I setup a componenent InfomixOutput, it generates the following statement: 
&lt;BR /&gt;"UPDATE \"" + "test" + "\" SET \"newColumn1\"=? WHERE \"newColumn\"=?" 
&lt;BR /&gt;--&amp;gt; which produce a syntax error: 
&lt;BR /&gt;Exception in component tInformixOutput_1 
&lt;BR /&gt;java.sql.SQLException: A syntax error has occurred. 
&lt;BR /&gt; at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:397) 
&lt;BR /&gt;and when I setup the very same thing with TOS 2.1.2, the statement is : 
&lt;BR /&gt;"UPDATE " + "test" + " SET b=? WHERE a=?" 
&lt;BR /&gt;in fact tInformixOutput_begin.javajet has change with the new version into this: 
&lt;BR /&gt; 
&lt;BR /&gt;for(Column replacement:replacedColumns){ 
&lt;BR /&gt; insertColName.append("\\\""+replacement.getName()+"\\\""+suffix); 
&lt;BR /&gt; insertValueStmt.append(replacement.getSqlStmt()+suffix); 
&lt;BR /&gt; if(!colStmt.getColumn().isKey()){ 
&lt;BR /&gt; if(!firstNoneKey){ 
&lt;BR /&gt; updateSetStmt.append(","); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; firstNoneKey = false; 
&lt;BR /&gt; } 
&lt;BR /&gt; updateSetStmt.append("\\\""+replacement.getName()+"\\\""); 
&lt;BR /&gt; updateSetStmt.append("=" + replacement.getSqlStmt()); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; if(!firstKey){ 
&lt;BR /&gt; updateWhereStmt.append(" AND "); 
&lt;BR /&gt; }else{ 
&lt;BR /&gt; firstKey = false; 
&lt;BR /&gt; } 
&lt;BR /&gt; updateWhereStmt.append("\\\""+replacement.getName()+"\\\""); 
&lt;BR /&gt; updateWhereStmt.append("=" + replacement.getSqlStmt()); 
&lt;BR /&gt; } 
&lt;BR /&gt; counterReplace++; 
&lt;BR /&gt; } 
&lt;BR /&gt; 
&lt;BR /&gt;Am I completely WRONG? 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for help 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQLException-with-TOS-2-2-0GA-r6191/m-p/2305404#M77059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQLException with TOS 2.2.0GA_r6191</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQLException-with-TOS-2-2-0GA-r6191/m-p/2305405#M77060</link>
      <description>Hello, &lt;BR /&gt;Can you create a bug in our &lt;A href="http://talendforge.org/bugs" target="_blank" rel="nofollow noopener noreferrer"&gt;bugtracker&lt;/A&gt; please ?&lt;BR /&gt;Regards,</description>
      <pubDate>Tue, 23 Oct 2007 22:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQLException-with-TOS-2-2-0GA-r6191/m-p/2305405#M77060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-10-23T22:07:38Z</dc:date>
    </item>
  </channel>
</rss>

