Re: Re: MSACCESS & Apostrophe in Column Name - Mailing list pgsql-odbc

From Bob Woodside
Subject Re: Re: MSACCESS & Apostrophe in Column Name
Date
Msg-id 3B2D6289.402F7CD9@pcnet.com
Whole thread Raw
In response to Re: MSACCESS & Apostrophe in Column Name  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-odbc
Hiroshi Inoue wrote:
>
> Bob Woodside wrote:
> >
> >         If we issue a query with an odd number of these references, the
> > back end receives something like this:
> >
> > > 'SELECT "ID","Month called or rec'd form","FullName"  FROM
> "GHI-practice2"
> > >   WHERE "ID" = ? OR "ID" = ? OR "ID" = ? OR "ID" = ? OR "ID" = ? OR "ID"
> = ?
> > >   OR "ID" = ? OR "ID" = ? OR "ID" = ? OR "ID" = ?'
> >
>
> Psqlodbc driver has been unaware of double-quotes(") .
> Probably it's the cause.
> Recently I changed the driver to check double-quotes.
> Could you try the CVS snapshot ?

    That's definitely the cause, and thanks for your suggestion. However,
it was more convenient for my immediate needs just to take a quick look
at the source from the 7.1.2 tarball and hack in a little double-quote
patch to the in_quote stuff.

    If I have a little time during the coming week, I'll set up a CVS tree
and take a look at your latest version. I'm sure it's better than my
hasty patch - e.g., I know that mine won't catch anything fancy like an
escaped quote within a quote (you *did* check for that, right?)


Cheers,
Bob

pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Error handling in ODBC
Next
From: Hiroshi Inoue
Date:
Subject: Re: Re: MSACCESS & Apostrophe in Column Name