| От | Neil Conway |
|---|---|
| Тема | Re: before trigger doesn't, on insert of too long data |
| Дата | |
| Msg-id | 871xsgyq36.fsf@mailbox.samurai.com обсуждение исходный текст |
| Ответ на | before trigger doesn't, on insert of too long data (Thomas Erskine <thomas.erskine@sympatico.ca>) |
| Ответы |
Re: before trigger doesn't, on insert of too long data
|
| Список | pgsql-bugs |
Thomas Erskine <thomas.erskine@sympatico.ca> writes: > A before trigger doesn't always fire. If a column being inserted into is > too small for the incoming data, psql complains: > ERROR: value too long for type ... > without giving the trigger procedure a chance to deal with it. I believe this is a feature, not a bug: a CHAR(4) field should never, ever contain > 4 characters. Whether there is a trigger that is yet to be processed is not relevant. I'd suggest changing the type of the column to be TEXT, or similar (which should be just as efficient CHAR(4)). -Neil
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера