From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Pavel Golub <pavel(at)gf(dot)microolap(dot)com> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Bug in CREATE FUNCTION with character type |
Date: | 2010-04-14 22:07:21 |
Message-ID: | 15638.1271282841@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Pavel Golub <pavel(at)microolap(dot)com> writes:
> Example:
> CREATE OR REPLACE FUNCTION test_char_function()
> RETURNS TABLE(id int, salesourcecode character) AS
> $BODY$
> VALUES (1, 'one'), (2, 'two'), (3, 'three');
> $BODY$
> LANGUAGE 'sql'
> pqfmod function from libpq library for salesourcecode column returns
> 0, which is wrong. Who can ever imagine bpchar of length 0? :)
I get -1 (indicating unspecified), which is what I'd expect. You
sure about the zero?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-04-14 22:12:34 | Re: Bug in CREATE FUNCTION with character type (CONFIRMED BUG) |
Previous Message | Kevin Grittner | 2010-04-14 21:45:24 | Re: [BUGS] BUG #5412: test case produced, possible race condition. |