Re: BUG #3598: Strange behaviour of character columns in select with views

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "Luiz K(dot) Matsumura" <luiz(at)planit(dot)com(dot)br>
Cc: <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #3598: Strange behaviour of character columns in select with views
Date: 2007-09-04 08:35:19
Message-ID: 46DD18C7.3020906@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Luiz K. Matsumura wrote:
> When we do:
>
> SELECT * from view1;
> OR
> SELECT id,col1,type1,type2 FROM view1;
>
> column type1 return as bpchar
>
>
> But if we do:
> SELECT type1 FROM view1;
> or
> SELECT id,col1,type2,type1 FROM view1;
>
> Now, type1 return as character(3) as expected.

I can't reproduce this. View1.type1 has has type char(3) as expected in
both cases, as witnessed by "CREATE VIEW f AS SELECT */type1 FROM
view1"; \d f". How did you determine the data types?

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexis Beuraud 2007-09-04 10:21:19 BUG #3599: Wrong search_path inside a function
Previous Message Heikki Linnakangas 2007-09-04 08:22:07 Re: BUG #3597: CREATE OR REPLACE VIEW