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 2B27A3A5070 for ; Wed, 12 Jan 2005 23:03:52 +0000 (GMT) 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 92159-06 for ; Wed, 12 Jan 2005 23:03:41 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by svr1.postgresql.org (Postfix) with ESMTP id 9F9A13A4FE3 for ; Wed, 12 Jan 2005 23:03:42 +0000 (GMT) Received: from xyz (pcp05008688pcs.sanarb01.mi.comcast.net[68.40.86.141]) by comcast.net (sccrmhc11) with SMTP id <2005011223034201100342dae>; Wed, 12 Jan 2005 23:03:42 +0000 From: "Ken Shaw" To: Subject: Proposed addition to psqlodbc driver Date: Wed, 12 Jan 2005 18:03:33 -0500 Message-ID: <002e01c4f8fa$f0b08830$800101df@xyz> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.75 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: * X-Archive-Number: 200501/26 X-Sequence-Number: 4821 Hi, Our app currently runs on SqlServer; we are porting it to run on PostgreSQL. We often have data that has a backslash in it, which is an escape character in PostgreSQL for both string literals and LIKE patterns. This special treatment of backslash in PostgreSQL breaks our code in numerous places. We have eliminated 99% of these problems by modifying the driver so that the driver escapes the backslash in string literals and in LIKE string literal patterns. (That is, it inserts extra backslashes). We have made this handling be optional by adding an "Escape Backslash" checkbox in the "Datasource" "Advanced Options" dialog, so that users and applications that need the standard behavior have it. Please let me know whether you would you be interested in making this part of the standard driver or need more information. Best Regards, Ken Shaw ********************************************** Ken Shaw Belarc, Inc. - "PC Management for the Internet Age" phone: 734-971-1445 fax: 509-277-0391 email: kshaw@belarc.com web: http://www.belarc.com **********************************************