X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6047CD1E123 for ; Sun, 14 Mar 2004 06:26:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 05529-05 for ; Sun, 14 Mar 2004 02:26:54 -0400 (AST) Received: from smtp2.actcom.co.il (mail.actcom.co.il [192.114.47.15]) by svr1.postgresql.org (Postfix) with ESMTP id 40EE7D1E11A for ; Sun, 14 Mar 2004 02:26:52 -0400 (AST) Received: from shemesh.biz (line102-130.adsl.actcom.co.il [192.117.102.130]) by smtp2.actcom.co.il (8.12.8/8.12.8) with ESMTP id i2E6QlxQ006040; Sun, 14 Mar 2004 08:26:47 +0200 Message-ID: <4053FB27.4010606@shemesh.biz> Date: Sun, 14 Mar 2004 08:26:47 +0200 From: Shachar Shemesh Organization: Lingnu Open Systems Consulting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 X-Accept-Language: en, he MIME-Version: 1.0 To: Jeff Eckermann Cc: gtgibson@jbstamping.com, pgsql-odbc@postgresql.org Subject: Re: ERROR: column "ctid" does not exist References: <20040313160946.45755.qmail@web20801.mail.yahoo.com> In-Reply-To: <20040313160946.45755.qmail@web20801.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/50 X-Sequence-Number: 3852 Jeff Eckermann wrote: >Perhaps you are assuming that George is trying to >update his views? But he's getting failure just on >trying to select from them... > > > The problem is that, in order to ALLOW updating, the ODBC need to do it's changes during the "Select" stage. This means that it doesn't really matter whether you are actually doing any updates, so long as you have not told the driver that you do not intend to do any. >>the fields of the >>view come from just one table, but will probably >>fail miserably for >>anything else. I also don't know how a query such as >>"update ...." >>will be accepted by postgresql. >> >> > >"create or replace view..." works on PostgreSQL >versions 7.3 on, IIRC. >"\dv viewname" to get view definition, "create or >replace view ", copy and paste the view definition, >edit to add what you want, hit enter and done. Easy! > > > update doesn't change the table. update
changes values inside the table. I don't think you can issue "update " at all. http://www.postgresql.org/docs/7.4/static/sql-update.html >Thinking about this some more, this has to be an >OpenOffice issue, because I have not seen this problem >elsewhere, even with "updateable cursors" set to true >in the driver. Not sure what changing that setting >would do to the rest of the application. > > OpenOffice has no way of knowing about these issues. It just uses an ODBC interface. Removing "updateable cursors" from the ODBC driver may actually solve this problem, but this will, of course, make OpenOffice read only. Shachar -- Shachar Shemesh Lingnu Open Systems Consulting http://www.lingnu.com/