logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: ERROR: column "ctid" does not exist: msg#00045

db.postgresql.odbc

Subject: Re: ERROR: column "ctid" does not exist

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 <view>...." 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 <table> doesn't change the table. update <table> changes values inside the table. I don't think you can issue "update <view>" 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/


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo