Re: Record variable not behaving as expected (bug?)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Record variable not behaving as expected (bug?)
Дата
Msg-id 2715.1196439199@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Record variable not behaving as expected (bug?)  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: Record variable not behaving as expected (bug?)  ("Postgres User" <postgres.developer@gmail.com>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Fri, Nov 30, 2007 at 12:23:31AM -0800, Postgres User wrote:
>> However, I have found that my record variable is not assigned proper
>> field-level datatypes.  As a result, I'm unable to write basic math
>> calcs in pg/sql without a lot of typecasting.

> What version are you running. On my 8.1.9 test system it returns -1.00
> as expected.

Works for me too, in all branches back to 8.0.  However, I noticed that
the test function references "test.table2" not just "table2", which
makes me wonder if maybe this is picking up some other table2 than the
OP thinks.  A test.table2 with integer columns would explain the result.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: postgresql table inheritance
Следующее
От: "Postgres User"
Дата:
Сообщение: Re: Record variable not behaving as expected (bug?)