7.2 changes to varchar truncation

Поиск
Список
Период
Сортировка
От Jeffrey W. Baker
Тема 7.2 changes to varchar truncation
Дата
Msg-id Pine.LNX.4.33.0112311357281.5617-100000@windmill.gghcwest.com
обсуждение исходный текст
Ответы Re: 7.2 changes to varchar truncation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Given a column of type varchar(n), postgres 7.1 allowed me to insert a
string s of length m where m > n by truncating s.  In 7.2, I get an error:
ERROR:  value too long for type character varying(64).  This is annoying
and breaks practically all of my programs.  The fact that this is
mentioned in the docs doesn't make this suck less.

What do I do to get back the old behavior?

If I have to change my datatypes to text or varchar without a limit, I'll
have to drop and reload my databases (again), about which I plan to have a
real bad attitude.

 -jwb


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

Предыдущее
От: "Michael McAlpine"
Дата:
Сообщение: Re: Large Tables/clustering/terrible performance
Следующее
От: "Jeffrey W. Baker"
Дата:
Сообщение: Re: Large Tables/clustering/terrible performance ofPostgresql