Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-05-01 Thread Hengky Liwandouw
Subject: Re: [GENERAL] Return and sql tuple descriptions are incompatible -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/25/2014 11:55 PM, Hengky Liwandouw wrote: > The last question : how to have automatically column header from > other table ? say from select distinct warehousename fro

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-27 Thread rob stone
, categori_2 text) > > Result : ERROR: return and sql tuple descriptions are incompatible > > Hope to get solution for this. > > Hengky > > -Original Message- > From: Joe Conway [mailto:m...@joeconway.com] > Sent: Friday, April 25, 2014 10:23 PM > To:

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-25 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (resending to the list as well for the sake of the archives) On 04/25/2014 08:53 AM, Hengky Liwandouw wrote: > Thanks to give me the right direction to get help. Okay, here it > the detail. > > CREATE table test (id SERIAL, produkid TEXT, warehousen

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-25 Thread Hengky Liwandouw
s. Hengky -Original Message- From: Joe Conway [mailto:m...@joeconway.com] Sent: Friday, April 25, 2014 10:23 PM To: Hengky Liwandouw; 'pgsql-general General' Subject: Re: [GENERAL] Return and sql tuple descriptions are incompatible -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-25 Thread Joe Conway
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/25/2014 12:19 AM, Hengky Liwandouw wrote: > I have read the instruction, change warehouseid to text, spend > several hours to test many option but it doesn't help. Please send a complete, self-contained test case which reproduces your error. By

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-25 Thread Hengky Liwandouw
still the same. I really have no idea -Original Message- From: pgsql-general-ow...@postgresql.org [mailto:pgsql-general-ow...@postgresql.org] On Behalf Of David G Johnston Sent: Friday, April 25, 2014 2:20 AM To: pgsql-general@postgresql.org Subject: Re: [GENERAL] Return and sql tuple d

Re: [GENERAL] Return and sql tuple descriptions are incompatible

2014-04-24 Thread David G Johnston
Hengky Lie wrote > Select * from crosstab($$select produkid, warehouseid,onhand from vwtest > order by 1,2$$) > > as t (produkid VARCHAR, warehouseid integer) > > The crosstab command didn't work with error : Return and sql tuple > descriptions are incompatible. > > I have tried to change produc

[GENERAL] Return and sql tuple descriptions are incompatible

2014-04-24 Thread Hengky Liwandouw
Hi, I have the following crosstab command : Select * from crosstab($$select produkid, warehouseid,onhand from vwtest order by 1,2$$) as t (produkid VARCHAR, warehouseid integer) vwtest : CREATE OR REPLACE VIEW public.vwtest ( produkid, warehouseid, onhand) AS SELEC