<?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 Data Decode not working as expected Postgres in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Decode-not-working-as-expected-Postgres/m-p/2225879#M17998</link>
    <description>&lt;P&gt;Im using the below update statement to decode a value in column .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update table set col =substring(decode(decode(col,'escape')::text,'hex')::varchar,1,25)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it works fine when i run it in pgadmin/dbeaver or any client tools.. but the same is not working when running via talend tpostgresrow component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Client tools:&lt;/P&gt;
&lt;P&gt;sample values:&amp;nbsp;select substring(decode(decode('2342354354','escape')::text,'hex')::varchar,1,25)&lt;/P&gt;
&lt;P&gt;Op:&amp;nbsp;"#B5CT"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in talend&amp;nbsp;&lt;/P&gt;
&lt;P&gt;op : "\x2342354354"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:47:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T04:47:35Z</dc:date>
    <item>
      <title>Data Decode not working as expected Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Decode-not-working-as-expected-Postgres/m-p/2225879#M17998</link>
      <description>&lt;P&gt;Im using the below update statement to decode a value in column .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update table set col =substring(decode(decode(col,'escape')::text,'hex')::varchar,1,25)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it works fine when i run it in pgadmin/dbeaver or any client tools.. but the same is not working when running via talend tpostgresrow component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Client tools:&lt;/P&gt;
&lt;P&gt;sample values:&amp;nbsp;select substring(decode(decode('2342354354','escape')::text,'hex')::varchar,1,25)&lt;/P&gt;
&lt;P&gt;Op:&amp;nbsp;"#B5CT"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in talend&amp;nbsp;&lt;/P&gt;
&lt;P&gt;op : "\x2342354354"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Decode-not-working-as-expected-Postgres/m-p/2225879#M17998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Data Decode not working as expected Postgres</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Decode-not-working-as-expected-Postgres/m-p/2225880#M17999</link>
      <description>23 = #&lt;BR /&gt;54 = T&lt;BR /&gt;from hex to acsii&lt;BR /&gt;so tis' working but the driver used to connect postgres do not translate response as acsii.&lt;BR /&gt;check your driver/db configuration or use TEXT(x) data type or convert result to ascii or utf8 char.&lt;BR /&gt;good luck</description>
      <pubDate>Wed, 04 Sep 2019 08:28:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Decode-not-working-as-expected-Postgres/m-p/2225880#M17999</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-04T08:28:48Z</dc:date>
    </item>
  </channel>
</rss>

