X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 42AA85E46EF for ; Tue, 17 Aug 2004 05:42:25 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65137-08 for ; Tue, 17 Aug 2004 08:42:23 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 93D8A5E46E9 for ; Tue, 17 Aug 2004 05:42:22 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i7H8gLiG069866 for ; Tue, 17 Aug 2004 08:42:21 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i7H8cwvX068349 for pgsql-odbc@postgresql.org; Tue, 17 Aug 2004 08:38:58 GMT From: Giulio Orsero X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: msquery and double quoting column names Date: Tue, 17 Aug 2004 10:39:00 +0200 Organization: nowhere Lines: 24 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org X-Newsreader: Forte Agent 2.0/32.652 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/44 X-Sequence-Number: 4353 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