pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Cannot insert into view without an appropriate rule (#7)
3+ messages / 3 participants
[nested] [flat]

* Cannot insert into view without an appropriate rule (#7)
@ 2003-02-03 16:20 Makauskas Vidas <vidas@lindra.lt>
  2003-02-07 08:46 ` Re: Cannot insert into view without an appropriate rule (#7) Tambet Matiisen <t.matiisen@aprote.ee>
  0 siblings, 1 reply; 3+ messages in thread

From: Makauskas Vidas @ 2003-02-03 16:20 UTC (permalink / raw)
  To: pgsql-odbc

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...
Best regards,
Vidas




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Cannot insert into view without an appropriate rule (#7)
  2003-02-03 16:20 Cannot insert into view without an appropriate rule (#7) Makauskas Vidas <vidas@lindra.lt>
@ 2003-02-07 08:46 ` Tambet Matiisen <t.matiisen@aprote.ee>
  0 siblings, 0 replies; 3+ messages in thread

From: Tambet Matiisen @ 2003-02-07 08:46 UTC (permalink / raw)
  To: Makauskas Vidas <vidas@lindra.lt>; pgsql-odbc


----- 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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Cannot insert into view without an appropriate rule (#7)
@ 2003-02-06 12:19 Makauskas Vidas <dbf@lindra.lt>
  0 siblings, 0 replies; 3+ messages in thread

From: Makauskas Vidas @ 2003-02-06 12:19 UTC (permalink / raw)
  To: pgsql-odbc

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 link view with access97:
CREATE VIEW view_table AS SELECT Fdate::timestamp, Fint8::int4 FROM table;

Then make an attemp INSERT and get error:
'Cannot insert into view without an appropriate rule (#7)'.

Is it mistaken way to solve mentioned above problem with data
incompatibility postgres and access.
Or Is it posible to solve problem via rules...

Excuse me for newbie question.

Best regards,
Vidas

Su pagarba,
Vidas Makauskas
8w683,66455




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-02-07 08:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 16:20 Cannot insert into view without an appropriate rule (#7) Makauskas Vidas <vidas@lindra.lt>
2003-02-07 08:46 ` Tambet Matiisen <t.matiisen@aprote.ee>
2003-02-06 12:19 Cannot insert into view without an appropriate rule (#7) Makauskas Vidas <dbf@lindra.lt>

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