Re: [INTERFACES] Strange error accessing *views* from Linux through ODBC

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Emmanuel Charpentier <charpent(at)bacbuc(dot)dyndns(dot)org>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org, Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
Subject: Re: [INTERFACES] Strange error accessing *views* from Linux through ODBC
Date: 2003-01-17 23:20:46
Message-ID: 3E288FCE.5A14ADD@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

Emmanuel Charpentier wrote:
>
> Dear list,
>
> Due to a problem related to updates of views through rules, I bit the
> bullet and installed Pg 7.3.1. I use Debian (mostly Woody, a. k. a. stable)
> ; after some attempts to install the Woody version, I installed the sid
> versions.
>
> From Windows (I'm using OpenOffice to access a Linux PostgreSQL database
> through the experimental ODBC3 drive, Dec 17 2002 version), nothing has
> changed : I still can't update a view (I thought the problem I had might be
> related to 7.2 not returning the number of rows updated). More on this
> later, after I have time to create a log ...
>
> From Linux (Same setup, using the official ODBC driver as packaged by
> Oliver Elphick for Debian Sid, a. k. a. unstable along with unixodbc), I
> can access tables, but no views. When I try to use a view, OpenAccess
> returns me an error message box asserting that "Can't update data contents.
> [unixODBC] Error: Attribute "ctid" not found". I don't even get a read-only
> access to data.
>
> I am suspecting a serious ODBC problem. Do you have any hints ?

Try to turn off the *Updatable cursors* DSN option or
create view the_table as ctid, oid, .......

regards,
Hiroshi Inoue
http://www.geocities.jp/inocchichichi/psqlodbc/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-01-17 23:23:10 Re: pg_stat_get_backen_last_activity() ???
Previous Message Sean Chittenden 2003-01-17 23:20:09 Re: pg_stat_get_backen_last_activity() ???

Browse pgsql-interfaces by date

  From Date Subject
Next Message jco 2003-01-18 14:01:53 libpq C library Client Interface - select()
Previous Message Emmanuel Charpentier 2003-01-17 12:44:10 Strange error accessing *views* from Linux through ODBC