Re: Using views and MS access via odbc

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Using views and MS access via odbc
Дата
Msg-id 3CD0D310.AA0BE68A@tpf.co.jp
обсуждение исходный текст
Ответ на Using views and MS access via odbc  (Ron Snyder <snyder@roguewave.com>)
Ответы Re: Using views and MS access via odbc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: On Distributions In 7.2.1
Следующее
От: Jakub Ouhrabka
Дата:
Сообщение: Re: FATAL: stuck spinlock