pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Giulio Orsero <giulioo@pobox.com>
To: pgsql-odbc@postgresql.org
Subject: msquery and double quoting column names
Date: Tue, 17 Aug 2004 10:39:00 +0200
Message-ID: <cfsg71$22np$1@news.hub.org> (raw)

7.4.3, latest win odbc drivers.

I see there are many users having problems with mixed case column names
create table t1 ("Field" varchar(8));
and accessing them through msquery (default tool in office suite) due to
msquery not enclosing column names in quotes so that msquery does
	select Field from t1;
and postgres rewrites it into
	select field from t1
thus not finding the column.

I know the solution is to do sql by hand in msquery, but this is not
optimal; so this post is to ask if someone has done one of the
following:

- modified the pgsql win odbc driver to add an option like "quote every
column name before sending it to the server"
- created a patch to postgres server to look for the column name as
typed by the user before lowercasing it.

Thanks.

-- 
giulioo@pobox.com



Message-ID: <cfsg71$22np$1@news.hub.org>
Permalink:  ../cfsg71$22np$1@news.hub.org/
Also on:    postgresql.org/message-id/cfsg71$22np$1@news.hub.org

 · 

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: giulioo@pobox.com
  Subject: Re: msquery and double quoting column names
  In-Reply-To: <cfsg71$22np$1@news.hub.org>
  References: <cfsg71$22np$1@news.hub.org>

* 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