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 3CD0D310.AA0BE68A@tpf.co.jp
Whole thread Raw
In response to Using views and MS access via odbc  (Ron Snyder <snyder@roguewave.com>)
Responses Re: Using views and MS access via odbc
List pgsql-general
Ron Snyder wrote:
>
> I've got a table, view, and rules as below.  The permissions are set up in
> such a way that I can use it just fine as myself via psql.  When I try to
> access the data using an ms access interface via odbc, I get the first
> record in the view, but any attempts to go to other records cause ms access
> to tell me that they've been deleted (it's lying though, because I can still
> see them through the psql interface).

Are you using 7.2 ?
Your settings probably worked well under 7.1 but
doesn't in 7.2 due to the following change in
tcop/postgres.c.

     /*
      * It is possible that the original query was removed due to
      * a DO INSTEAD rewrite rule.  In that case we will still have
      * the default completion tag, which is fine for most purposes,
      * but it may confuse clients if it's INSERT/UPDATE/DELETE.
      * Clients expect those tags to have counts after them (cf.
      * ProcessQuery).
      */
      if (strcmp(commandTag, "INSERT") == 0)
              commandTag = "INSERT 0 0";
      else if (strcmp(commandTag, "UPDATE") == 0)
              commandTag = "UPDATE 0";
      .
      .

 * UPDATE 0 * means no tuple was updated.

regards,
Hiroshi Inoue
    http://w2422.nsk.ne.jp/~inoue/

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: On Distributions In 7.2.1
Next
From: Jakub Ouhrabka
Date:
Subject: Re: FATAL: stuck spinlock