Re: Automatic truncation of character values & casting to the type of a column type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Automatic truncation of character values & casting to the type of a column type
Дата
Msg-id 21710.1261020051@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Automatic truncation of character values & casting to the type of a column type  (Justin Bailey <jgbailey@gmail.com>)
Ответы Re: Automatic truncation of character values & casting to the type of a column type  (Justin Bailey <jgbailey@gmail.com>)
Список pgsql-general
Justin Bailey <jgbailey@gmail.com> writes:
> I have tried using the PL/PGSQL
> feature where types can be "copied" in a declaration:

>   DECLARE
>      myVal Short.shortCol%TYPE;

> But I can still put values which are too long into that variable, so
> it doesn't help me.

Really?  Works for me, in everything back to 7.3.

            regards, tom lane

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

Предыдущее
От: yuliada
Дата:
Сообщение: Re: Slow select
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: How to get text for a plpgsql variable from a file.