From: Tambet Matiisen <t.matiisen@aprote.ee>
To: Makauskas Vidas <vidas@lindra.lt>
To: pgsql-odbc@postgresql.org
Subject: Re: Cannot insert into view without an appropriate rule (#7)
Date: Fri, 7 Feb 2003 10:46:26 +0200
Message-ID: <005d01c2ce85$66741110$0e01a8c0@aprote.com> (raw)
References: <MKEPLGGGIHJHKDJLKIPAIEMFCAAA.vidas@lindra.lt>
----- Original Message -----
From: "Makauskas Vidas" <vidas@lindra.lt>
To: <pgsql-odbc@postgresql.org>
Sent: Monday, February 03, 2003 6:20 PM
Subject: [ODBC] Cannot insert into view without an appropriate rule (#7)
> Hi,
> It's convenient (search, filters, sorting...) to do local forms over ODBC
> with linked tables in access. But exits incompatibility with date types:
> int8, date, time in postgres with access. I've make an attemp link tables
> via views with data conversation and do INSERT into table through CREATE
> VIEW view_table AS SELECT Fdate::timestamp, Fint8::int4 FROM table; and
get
> error 'Cannot insert into view without an appropriate rule (#7)'.
> May I ask such question without myself additional atemptions, because it's
> my first step into postgres, is it mistaken way to solve problem mentioned
> above. Or it's posible to solve problem via rules...
>
Just create insert rule for the view.
http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=rules.html
Or you could also change column types of source table and insert directly
to table. If Access sees the column as int4, you can't insert int8 into it
anyway.
Tambet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: t.matiisen@aprote.ee, vidas@lindra.lt
Subject: Re: Cannot insert into view without an appropriate rule (#7)
In-Reply-To: <005d01c2ce85$66741110$0e01a8c0@aprote.com>
References: <MKEPLGGGIHJHKDJLKIPAIEMFCAAA.vidas@lindra.lt> <005d01c2ce85$66741110$0e01a8c0@aprote.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox