| От | Andrew Lazarus |
|---|---|
| Тема | Re: Help with RULES - Please! |
| Дата | |
| Msg-id | 1169425615.20070102105053@attglobal.net обсуждение |
| Ответ на | Help with RULES - Please! ("Jeanna Geier" <jgeier@apt-cafm.com>) |
| Список | pgsql-jdbc |
The JDBC driver makes its own determination of whether a recordset is updateable, and it doesn't know about the RULEs on VIEWs. I found I could fool it by creating an extra "oid" column in the view that I knew was unique. The driver will use a column labeled oid as a primary key for sending UPDATE commands to the back end. In your code, you could probably just have SELECT element.elementid AS oid, element.elemendid, etc. and change none of the rest of your code. I don't know if this kludge is documented or guaranteed to work in future versions. Andrew Lazarus drlaz@attglobal.net
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера