<?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: tMySQLOutput generating invalid SQL statement in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351068#M117796</link>
    <description>I don't see what is invalid about that statement, apart from the missing UPDATE logic. This is likely to do with the component not having been configured correctly. 
&lt;BR /&gt;You need to give us more information. Have you configured the "Field Options" in the Advanced Tab?&amp;nbsp;What is the actual error message?</description>
    <pubDate>Fri, 18 Mar 2016 14:15:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-18T14:15:26Z</dc:date>
    <item>
      <title>tMySQLOutput generating invalid SQL statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351067#M117795</link>
      <description>&lt;P&gt;Hello !&lt;BR /&gt;I have this on a Talend job : &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/355094/Capture.png" target="_blank" rel="noopener"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MHBC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134790i3E6305CFBD4B7845/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MHBC.png" alt="0683p000009MHBC.png" /&gt;&lt;/span&gt; &lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The aim is to fill the table with data, the table is just a relational one (2 fields which correspond to ID of other tables)&lt;BR /&gt;The tJava component allows me to print the query &lt;BR /&gt;It contains :&lt;/P&gt; 
&lt;PRE&gt;System.out.println(((String)globalMap.get("tMysqlOutput_27_QUERY")));&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The tMySQLOutput component is set with "&lt;STRONG&gt;Insert or update on duplicate key or unique index&lt;/STRONG&gt;".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem is that it gives me an &lt;STRONG&gt;SQL Syntax Error&lt;/STRONG&gt;. &lt;BR /&gt;You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1&lt;BR /&gt;&lt;BR /&gt;With the tJava component, I get the query :&lt;/P&gt; 
&lt;PRE&gt;INSERT IGNORE INTO `myTable` (`myField_1`,`myField_2`) VALUES (36,12766) ON DUPLICATE KEY UPDATE&lt;/PRE&gt; 
&lt;P&gt;&lt;BR /&gt;In facts, this query is invalid (using MySQL 5.7)&lt;BR /&gt;&lt;BR /&gt;It works with "Insert or update" mode.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Then, is it a bug/mistake from Talend ? &lt;BR /&gt;Or do I have misunderstood the way of using "Insert or update on duplicate key or unique index" ?&lt;BR /&gt;&lt;BR /&gt;Thank you for your answers !&lt;BR /&gt;&lt;BR /&gt;Anth224&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351067#M117795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput generating invalid SQL statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351068#M117796</link>
      <description>I don't see what is invalid about that statement, apart from the missing UPDATE logic. This is likely to do with the component not having been configured correctly. 
&lt;BR /&gt;You need to give us more information. Have you configured the "Field Options" in the Advanced Tab?&amp;nbsp;What is the actual error message?</description>
      <pubDate>Fri, 18 Mar 2016 14:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351068#M117796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-18T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: tMySQLOutput generating invalid SQL statement</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351069#M117797</link>
      <description>Hi, 
&lt;BR /&gt;You are right, I didn't configured it at all through the other tabs. 
&lt;BR /&gt;I thought it will update the data using the columns I put as key, like it does through 'Insert or Update' mode. 
&lt;BR /&gt; 
&lt;BR /&gt;By the way, the error message was just : 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1' 
&lt;BR /&gt;Thank you!</description>
      <pubDate>Tue, 22 Mar 2016 09:23:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMySQLOutput-generating-invalid-SQL-statement/m-p/2351069#M117797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-22T09:23:13Z</dc:date>
    </item>
  </channel>
</rss>

