<?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 How do I set MySQL global or session variables for a connection? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-set-MySQL-global-or-session-variables-for-a-connection/m-p/2308965#M80240</link>
    <description>I am trying to set a session variable on mysql database query. My approach has been to use the following flow: 
&lt;BR /&gt;tMySqlConnection -&amp;gt; tMySqlInput -&amp;gt; tJavaRow -&amp;gt; tLogRow 
&lt;BR /&gt;I am calling the following in tMySqlInput: 
&lt;BR /&gt;SET SESSION =n; 
&lt;BR /&gt;SELECT 1 as success from dual; 
&lt;BR /&gt;Talend is blowing up saying there is a syntax error in the "SELECT 1 as success from dual;". However, this statement runs fine when I paste it in mysql workbench. 
&lt;BR /&gt;Any insights or approaches to solving this problem would be greatly appreciated!!</description>
    <pubDate>Sat, 16 Nov 2024 12:05:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:05:18Z</dc:date>
    <item>
      <title>How do I set MySQL global or session variables for a connection?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-set-MySQL-global-or-session-variables-for-a-connection/m-p/2308965#M80240</link>
      <description>I am trying to set a session variable on mysql database query. My approach has been to use the following flow: 
&lt;BR /&gt;tMySqlConnection -&amp;gt; tMySqlInput -&amp;gt; tJavaRow -&amp;gt; tLogRow 
&lt;BR /&gt;I am calling the following in tMySqlInput: 
&lt;BR /&gt;SET SESSION =n; 
&lt;BR /&gt;SELECT 1 as success from dual; 
&lt;BR /&gt;Talend is blowing up saying there is a syntax error in the "SELECT 1 as success from dual;". However, this statement runs fine when I paste it in mysql workbench. 
&lt;BR /&gt;Any insights or approaches to solving this problem would be greatly appreciated!!</description>
      <pubDate>Sat, 16 Nov 2024 12:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-set-MySQL-global-or-session-variables-for-a-connection/m-p/2308965#M80240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I set MySQL global or session variables for a connection?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-do-I-set-MySQL-global-or-session-variables-for-a-connection/m-p/2308966#M80241</link>
      <description>Nevermind, found better solution...use tMySqlRow.</description>
      <pubDate>Mon, 11 Mar 2013 19:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-do-I-set-MySQL-global-or-session-variables-for-a-connection/m-p/2308966#M80241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-11T19:06:36Z</dc:date>
    </item>
  </channel>
</rss>

