pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paul Lambert <paul.lambert@autoledgers.com.au>
To: pgsql-odbc@postgresql.org
Subject: Re: ODBC driver adding extra characters to table names.
Date: Thu, 09 Aug 2007 10:46:12 +0800
Message-ID: <46BA7FF4.4040006@autoledgers.com.au> (raw)
In-Reply-To: <11903.1186624913@sss.pgh.pa.us>
References: <46BA42E5.30407@autoledgers.com.au>
	<11903.1186624913@sss.pgh.pa.us>

Tom Lane wrote:
> It sounds like you have standard_conforming_strings turned ON (making
> backslashes not special in string literals) but there is some part of
> the client-side code that is not aware of that, and thinks it needs to
> double the backslash in the LIKE pattern.  Either turn off
> standard_conforming_strings or make sure you are using code that is
> new enough to cope.
> 

Correct, standard_conforming_strings is ON. Client side is microsoft 
access doing a link table.

Would it not be the ODBC driver itself that is adding the backslashes 
rather than M$ Access? Seems to me a bit strange that access would do 
something of that nature.

My initial assumption was that the ODBC driver makes an assumption that 
standard_conforming_strings will not be on and adjusts the table names 
accordingly. The following from the mylog file seems to me to indicate 
this sort of behavior:

[35520-7.722]adjust in=billing\_code(13)
[35520-7.722]adjust output=billing\\_code(14)
[35520-7.722]adjust in=public(6)
[35520-7.722]adjust output=public(6)

Up to this point in the log everything says billing_code, after this, 
everything says billing\\_code.

P.

-- 
Paul Lambert
Database Administrator
AutoLedgers




view thread (9+ messages)  latest in thread

Message-ID: <46BA7FF4.4040006@autoledgers.com.au>
Permalink:  ../46BA7FF4.4040006@autoledgers.com.au/
Also on:    postgresql.org/message-id/46BA7FF4.4040006@autoledgers.com.au

 · 

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: paul.lambert@autoledgers.com.au
  Subject: Re: ODBC driver adding extra characters to table names.
  In-Reply-To: <46BA7FF4.4040006@autoledgers.com.au>
  References: <46BA42E5.30407@autoledgers.com.au> <11903.1186624913@sss.pgh.pa.us> <46BA7FF4.4040006@autoledgers.com.au>

* 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