Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4AE5147733E for ; Fri, 17 Jan 2003 18:21:36 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id A7EB847696D for ; Fri, 17 Jan 2003 18:18:36 -0500 (EST) Received: (qmail 31512 invoked from network); 17 Jan 2003 23:18:37 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 17 Jan 2003 23:18:37 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id IAA23340; Sat, 18 Jan 2003 08:18:35 +0900 (JST) Message-ID: <3E288FCE.5A14ADD@tpf.co.jp> Date: Sat, 18 Jan 2003 08:20:46 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Emmanuel Charpentier Cc: pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org, Oliver Elphick Subject: Re: [INTERFACES] Strange error accessing *views* from Linux through ODBC References: <3E27FA9A.1030100@bacbuc.dyndns.org> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/673 X-Sequence-Number: 35794 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/