BUG #14428: decode function don't return correct value when executed from agent's job or external program

From: vbochkov(at)eastwind(dot)ru
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14428: decode function don't return correct value when executed from agent's job or external program
Date: 2016-11-18 10:49:47
Message-ID: 20161118104947.6530.83578@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14428
Logged by: Vadim Bochkov
Email address: vbochkov(at)eastwind(dot)ru
PostgreSQL version: 9.5.5
Operating system: CentOS 7.2
Description:

We have test stored function
CREATE FUNCTION decode_test()
RETURNS integer AS
BEGIN
insert into test2(txt)
select decode('30343134','hex')::varchar(8000);
return 0;

When we execute it from psql command prompt value "0414" is insesrted in
table. When we execute function from agent job value "х30343134" is
inserted in table.
Function decode() is deterministic, but result is not the same. It's bug.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2016-11-18 14:45:38 Re: BUG #14428: decode function don't return correct value when executed from agent's job or external program
Previous Message Julien Rouhaud 2016-11-17 22:01:14 Re: Index file got removed