| От | Michael Glaesemann |
|---|---|
| Тема | Re: Using a trigger with an object-relational manager |
| Дата | |
| Msg-id | 08713FB3-FD3F-4F0E-8FE0-FF045C76C59A@seespotcode.net обсуждение |
| Ответ на | Using a trigger with an object-relational manager (Rick Schumeyer <rschumeyer@ieee.org>) |
| Ответы |
Re: Using a trigger with an object-relational manager
|
| Список | pgsql-general |
On May 22, 2007, at 21:21 , Rick Schumeyer wrote: > The problem is that the new A object that rails gets does not see > the effect of the trigger. If I call the "reload" method, then > everything is ok. As ActiveRecord (which I'm assuming you're using with Rails) has no idea of what is going on in the database (ActiveRecord doesn't have a concept of triggers), there's no way for it to see the effect of the trigger without querying the database for the latest information (which is what you're doing with reload). Michael Glaesemann grzm seespotcode net
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера