pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julie May <julie@ccorb.com>
To: Mahlon Stacy <mcs@mayo.edu>
To: pgsql-odbc@postgresql.org
Subject: Re: pgsql-odbc bug querying VIEWs - Possible Solution
Date: Mon, 9 Jun 2003 09:12:32 -0600
Message-ID: <001e01c32e99$8ce6b630$a1d2a8c0@impsu.net> (raw)
References: <4B08D99CFA03D04EAF34E1A28C4D159C2E949F@pocono.mayo.edu>

Mahlon,

What I did to solve the problem was to include tablename.oid and
tablename.ctid from one of the tables (all the rows must be included from
that table if it is an outer join) in the view. In the corresponding table
on the desktop we included a column for oid and ctid, but we do not use the
values for anything. Using this solution the psqlodbc driver is able to
identify the rows and execute the queries.

Julie
----- Original Message -----
From: "Mahlon Stacy" <mcs@mayo.edu>
To: <pgsql-odbc@postgresql.org>
Sent: Wednesday, June 04, 2003 8:03 AM
Subject: [ODBC] pgsql-odbc bug querying VIEWs


> I have created a postgres VIEW for a user into a set of tables,
> and want to provide the user access from ODBC on Windows. The
> query into the VIEW fails, however, with the following message:
>
> Microsoft Query: Error: No such attribute as bdstatview.oid
>
> I am not requesting an explicit query on the OID. I am only requesting
> retrieval of the columns listed in the view.
>
> Queries into the other (real) tables in the same database work fine.
>
> pgsql-odbc version 7.02.00.05
> Postgresql version 7.3.2-1
> Windows OS XP Pro
> DB Server OS Red Hat Linux 8.0
>
> I have tried restricting the query to a small subset of the VIEW columns,
> same result. I have also turned on Fake OIDs in the ODBC config and re-run
> the query, same results.
>
> I cannot access the pgsql-odbc server this morning to see if there
> is a later version of the driver.
>
> -Mahlon
> -------------------------------------------------------------
> Mahlon Stacy                   Internet:   mcs@mayo.edu
> Mayo Foundation                (507) 284-4558
> Medical Science Bldg 1-43      FAX (507) 284-1632
> Rochester, MN 55905
> -------------------------------------------------------------
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org




Message-ID: <001e01c32e99$8ce6b630$a1d2a8c0@impsu.net>
Permalink:  ../001e01c32e99$8ce6b630$a1d2a8c0@impsu.net/
Also on:    postgresql.org/message-id/001e01c32e99$8ce6b630$a1d2a8c0@impsu.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: julie@ccorb.com, mcs@mayo.edu
  Subject: Re: pgsql-odbc bug querying VIEWs - Possible Solution
  In-Reply-To: <001e01c32e99$8ce6b630$a1d2a8c0@impsu.net>
  References: <4B08D99CFA03D04EAF34E1A28C4D159C2E949F@pocono.mayo.edu> <001e01c32e99$8ce6b630$a1d2a8c0@impsu.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox