still problem: inserting into writeable views

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема still problem: inserting into writeable views
Дата
Msg-id 4931C03B.6020909@Jakobs.com
обсуждение исходный текст
Ответы Re: still problem: inserting into writeable views  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Hi everybody,

I know this has been written about before, but no solution has been
given. Writing (insert, update, delete) to a view is generally not
possible in PostgreSQL. But if rules have been set up to redirect write
access to a view to some other (real) table, it works fine. Even using
Squirrel SQL, which has been written in Java and uses
org.postgresql.Driver, can write to writeable views.

Using JDBC (org.postgresql.Driver) produces an error
org.postgresql.util.PSQLException: FEHLER: kann nicht in eine Sicht einfügen
(German version, translates as 'ERROR: cannot insert into a view')

Why can't the JDBC driver just leave the decision whether a table/view
is writeable or not to the database instead of interfering?

Regards,
Holger

--
Holger Jakobs, Bergisch Gladbach, Germany
Telefon (0 22 02) 81 71 57, mobil (01 78) 9 75 90 12

Mails sollte man signieren und nach Möglichkeit verschlüsseln
siehe http://www.gnupg.org/gph/de/manual/f20.html



Вложения

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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: GSSAPI support [was: Re: New drivers released]
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: still problem: inserting into writeable views