Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 9A88D9FBFE0 for ; Wed, 8 Aug 2007 23:47:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 22419-03 for ; Wed, 8 Aug 2007 23:47:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from rrmailscan3.safenetbox.biz (mailscan3.reynolds.com.au [203.25.40.75]) by postgresql.org (Postfix) with ESMTP id C6BEB9FB589 for ; Wed, 8 Aug 2007 23:47:32 -0300 (ADT) Received: from rrmailscan3.safenetbox.biz (rrmailscan3.safenetbox.biz [127.0.0.1]) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id D79A31D48499 for ; Thu, 9 Aug 2007 12:47:30 +1000 (EST) Received: from [127.0.0.1] (online4-new.lnk.telstra.net [139.130.169.227]) (Authenticated sender: remote) by rrmailscan3.safenetbox.biz (Postfix) with ESMTP id B793A1D48454 for ; Thu, 9 Aug 2007 12:47:29 +1000 (EST) Message-ID: <46BA7FF4.4040006@autoledgers.com.au> Date: Thu, 09 Aug 2007 10:46:12 +0800 From: Paul Lambert User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: ODBC driver adding extra characters to table names. References: <46BA42E5.30407@autoledgers.com.au> <11903.1186624913@sss.pgh.pa.us> In-Reply-To: <11903.1186624913@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/18 X-Sequence-Number: 9135 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