From: | Bujji Babu <bujji(dot)babu(at)heales(dot)com> |
---|---|
To: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi> |
Cc: | pgsql-bugs(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [BUGS] SQL Bug |
Date: | 2016-10-06 10:59:58 |
Message-ID: | 1345512202.1556406.1475751598081.JavaMail.zimbra@heales.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-sql |
Dear Heikki,
Still same error msg.
select * from connectby('emp','empid','mgrid','1','0')
AS t(keyid text, parent_keyid text, level int);
ERROR: invalid return type
DETAIL: SQL key field type text does not match return key field type integer.
********** Error **********
ERROR: invalid return type
SQL state: 42804
Detail: SQL key field type text does not match return key field type integer.
Thanks&Regards,
M.Bujji Babu.
----- Original Message -----
From: "Heikki Linnakangas" <hlinnaka(at)iki(dot)fi>
To: "Bujji Babu" <bujji(dot)babu(at)heales(dot)com>, pgsql-bugs(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Sent: Thursday, 6 October, 2016 11:44:51 AM
Subject: Re: [BUGS] SQL Bug
On 10/06/2016 01:22 PM, Bujji Babu wrote:
> Version string: PostgreSQL 9.5.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4), 64-bit
> Please let me know if anyone knows how to fix this. below query works fine in version 9.4.
> select * from connectby('emp','empid','mgrid','1',0)
> AS t(keyid text, parent_keyid text, level int);
>
> ERROR: invalid return type DETAIL: SQL key field type text does not match return key field type integer. ********** Error ********** ERROR: invalid return type SQL state: 42804 Detail: SQL key field type text does not match return key field type integer.
Try:
select * from connectby('emp','empid','mgrid','1','0')
AS t(keyid integer, parent_keyid integer, level int);
connectby() was made more strict about the datatypes matching in 9.5.
See commit 37507962c3d2123b0f21c50d6172fd0b1e059fe7.
- Heikki
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2016-10-06 11:04:03 | Re: BUG #14356: "FATAL: the database system is starting up" error occurs to queries after PostgreSQL server start |
Previous Message | Heikki Linnakangas | 2016-10-06 10:44:51 | Re: [BUGS] SQL Bug |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2016-10-06 11:07:27 | Re: SQL Bug |
Previous Message | Heikki Linnakangas | 2016-10-06 10:44:51 | Re: [BUGS] SQL Bug |