Received: from u1.abs.net (root@u1.abs.net [207.114.0.131]) by hub.org (8.8.8/8.7.5) with ESMTP id JAA03284 for ; Mon, 27 Jul 1998 09:53:16 -0400 (EDT) Received: from insightdist.com (nobody@localhost) by u1.abs.net (8.9.0/8.9.0) with UUCP id JAA23533 for pgsql-interfaces@postgreSQL.org; Mon, 27 Jul 1998 09:46:36 -0400 (EDT) X-Authentication-Warning: u1.abs.net: nobody set sender to insightdist.com!byronn using -f Received: from ceodev by insightdist.com (AIX 3.2/UCB 5.64/4.03) id AA48308; Mon, 27 Jul 1998 09:36:48 -0400 Received: from byronn by ceodev (AIX 4.1/UCB 5.64/4.03) id AA71926; Mon, 27 Jul 1998 09:36:48 -0400 Message-Id: <35BC8274.C329C0@insightdist.com> Date: Mon, 27 Jul 1998 09:36:52 -0400 From: Byron Nikolaidis X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: Michael Yeung Cc: "'Interfaces of Postgres'" Subject: Re: [INTERFACES] Problem of using Access '97 to open db References: <01BDB987.F8FA2AF0@wynyard.alphanet.net.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Michael Yeung wrote: > > hi all, > > I have linked the postgresql dB through ODBC Drivers from www.insightdist.com ! > > Then i use Access 97 to open the database and the error says > > 'Error while executing query; WARN :parser : parse error at or near """ ' > > I checked the log and discover that the SELECT statement with double quote around the table name and the field name. How does it fixed with this ? > Postgres (at least 6.3.2) supports double quotes around identifiers. This allows for embedded spaces and other characters to be used in table names and field names. Therefore, at least under 6.3.2, something like select "test1"."a" from "test1" is perfectly legal. For ODBC, the driver now returns " as the identifier quote character. Access then uses this character for identifiers. Are you using an earlier version of Postgres that perhaps didn't support quotes? If 6.2 postgres doesn't support quotes, I could easily patch the driver to not use quotes when using 6.2 protocol. Please let me know. Byron