Re: Using views and MS access via odbc - Mailing list pgsql-general

From Hiroshi Inoue
Subject Re: Using views and MS access via odbc
Date
Msg-id EKEJJICOHDIEMGPNIFIJAEBLHLAA.Inoue@tpf.co.jp
Whole thread Raw
In response to Re: Using views and MS access via odbc  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> -----Original Message-----
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>
> Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> > Your settings probably worked well under 7.1 but
> > doesn't in 7.2 due to the following change in
> > tcop/postgres.c.
>
> AFAIR, there is only a visible change of behavior for
> INSERT/UPDATE/DELETE queries, not for SELECTs.  So I don't think
> this change explains Ron's complaint.

For a view a_view

  UPDATE a_view set ... where xxxxx;
returns UPDATE 0 in any case in 7.2.

The psqlodbc driver understands that no row was updated
and returns the info to the upper application if requested.
MS access( and I) think there's no such case other than
the row was changed or deleted after it was SELECTed.
Note that MS access doesn't issue any SELECT commands
to check the optimistic concurrency of the row. The where
clause of the UPDATE command contains *a_item = old_value*
for all items to check the optimisitic concurrency at the
same time.

regards,
Hiroshi Inoue

pgsql-general by date:

Previous
From: Jason Earl
Date:
Subject: Re: making a trigger to a system call to a shell script
Next
From: Paul M Foster
Date:
Subject: Re: Fwd: Postfix Relay Hub SMTP server: errors from postgresql.org[64.49.215.8]