<?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 [TOS 6.2.2] java.sql.SQLException: ERROR: syntax error at or near (Posgresql) command line into tJava on linux in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-6-2-2-java-sql-SQLException-ERROR-syntax-error-at-or-near/m-p/2272504#M49759</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;im on Linux&lt;BR /&gt;i try to execute psql command line from tJava routine&lt;/P&gt;
&lt;P&gt;but no query are good... but when i execute in command line linux are correctly execute.&lt;/P&gt;
&lt;P&gt;here for exemple sql query :&lt;/P&gt;
&lt;P&gt;"\"\\SELECT NOW();\""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my syntaxe are bad &lt;FONT face="arial,helvetica,sans-serif"&gt;for&lt;/FONT&gt; Talend -&amp;gt; tJava&amp;nbsp; routine ?&lt;/P&gt;
&lt;P&gt;plz dont tel me&amp;nbsp;that i do not have to use psql in command line i'm forced by the existing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;ProcessBuilder pb = new ProcessBuilder("/usr/bin/psql" ,"-h",this.getHost(),"-p",this.getPort(),"-U",this.getLogin(),"-d",this.getDataBase(),"-c", "\"\\SELECT NOW();\"");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;pb.directory(exec);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Map&amp;lt;String, String&amp;gt; env = pb.environment();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;env.put("PGPASSWORD", this.getPassword());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Process p = pb.start();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;my error message is :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;java.sql.SQLException: ERROR: syntax error at or near ""SELECT NOW();""LINE 1: "SELECT NOW();" ^&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;i tried :&lt;/P&gt;
&lt;P&gt;'\SELECT NOW();'&lt;BR /&gt;"\SELECT NOW();"&lt;BR /&gt;"SELECT NOW();"&lt;BR /&gt;"SELECT NOW()"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;nothing.&lt;BR /&gt;&lt;BR /&gt;if you have an idea ?&lt;BR /&gt;Thanks a lot.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:01:18 GMT</pubDate>
    <dc:creator>martel</dc:creator>
    <dc:date>2024-11-16T04:01:18Z</dc:date>
    <item>
      <title>[TOS 6.2.2] java.sql.SQLException: ERROR: syntax error at or near (Posgresql) command line into tJava on linux</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-6-2-2-java-sql-SQLException-ERROR-syntax-error-at-or-near/m-p/2272504#M49759</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;im on Linux&lt;BR /&gt;i try to execute psql command line from tJava routine&lt;/P&gt;
&lt;P&gt;but no query are good... but when i execute in command line linux are correctly execute.&lt;/P&gt;
&lt;P&gt;here for exemple sql query :&lt;/P&gt;
&lt;P&gt;"\"\\SELECT NOW();\""&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my syntaxe are bad &lt;FONT face="arial,helvetica,sans-serif"&gt;for&lt;/FONT&gt; Talend -&amp;gt; tJava&amp;nbsp; routine ?&lt;/P&gt;
&lt;P&gt;plz dont tel me&amp;nbsp;that i do not have to use psql in command line i'm forced by the existing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;ProcessBuilder pb = new ProcessBuilder("/usr/bin/psql" ,"-h",this.getHost(),"-p",this.getPort(),"-U",this.getLogin(),"-d",this.getDataBase(),"-c", "\"\\SELECT NOW();\"");&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;pb.directory(exec);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Map&amp;lt;String, String&amp;gt; env = pb.environment();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde"&gt;env.put("PGPASSWORD", this.getPassword());&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;Process p = pb.start();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;my error message is :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;java.sql.SQLException: ERROR: syntax error at or near ""SELECT NOW();""LINE 1: "SELECT NOW();" ^&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;i tried :&lt;/P&gt;
&lt;P&gt;'\SELECT NOW();'&lt;BR /&gt;"\SELECT NOW();"&lt;BR /&gt;"SELECT NOW();"&lt;BR /&gt;"SELECT NOW()"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;nothing.&lt;BR /&gt;&lt;BR /&gt;if you have an idea ?&lt;BR /&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-6-2-2-java-sql-SQLException-ERROR-syntax-error-at-or-near/m-p/2272504#M49759</guid>
      <dc:creator>martel</dc:creator>
      <dc:date>2024-11-16T04:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: [TOS 6.2.2] java.sql.SQLException: ERROR: syntax error at or near (Posgresql) command line into tJava on linux</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-6-2-2-java-sql-SQLException-ERROR-syntax-error-at-or-near/m-p/2272505#M49760</link>
      <description>&lt;P&gt;C'est bon, j'ai trouvé, j'ai enlevé tous les caractères d'échappement utiles sous windows.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 12:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-6-2-2-java-sql-SQLException-ERROR-syntax-error-at-or-near/m-p/2272505#M49760</guid>
      <dc:creator>martel</dc:creator>
      <dc:date>2019-11-26T12:25:09Z</dc:date>
    </item>
  </channel>
</rss>

