| От | Adrian von Bidder |
|---|---|
| Тема | Re: Problem with triggers |
| Дата | |
| Msg-id | 201006160656.32638@fortytwo.ch обсуждение |
| Ответ на | Re: Problem with triggers (Adrian Klaver <adrian.klaver@gmail.com>) |
| Ответы |
Re: Problem with triggers
Re: Problem with triggers |
| Список | pgsql-general |
Heyho! On Wednesday 16 June 2010 00.56:14 Adrian Klaver wrote: > > My question is: why do I get information about too long value before > > trigger fires? > > Can I change this behavior? I firmly feel friendly error messages like this firmly beong into the application and not into the DB. Next thing you'll want translated messages as well, and your triggers become so complex that you don't wnat to maintain them ... > The database is beating you to the validation. With triggers. A question to the experts: Couldn't this, in theory, be implememnted within the rules system? From what I understand they are run right after the query is parsed; I'd expect data validation to come a bit later. Not sure if this is right. cheers -- vbi -- Or is it?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера