CAST truncates without warning

Поиск
Список
Период
Сортировка
От Mike G
Тема CAST truncates without warning
Дата
Msg-id 20040513204415.GA22637@localhost.localdomain
обсуждение исходный текст
Ответы Re: CAST truncates without warning  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,

If a column, data type text, with 22 characters of data, is then CAST(column_name as varchar(20)) shouldn't a warning
orerror be generated? 

If the source is a variable defined as text instead of directly from a table, using plpsql, would that matter?

Mike




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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: setting local time without restarting server
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CAST truncates without warning