Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver

From: kataoka(at)interwiz(dot)koganei(dot)tokyo(dot)jp (Hiroki Kataoka)
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver
Date: 1998-08-13 02:16:33
Message-ID: 19980813111633Q.kataoka@interwiz.koganei.tokyo.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello all,

From: Bryan Brunton <bryan(at)flesherfab(dot)com>
Subject: [INTERFACES] '\' and varchar data type problem w/ MS Access and ODBC driver

> The backslash character '\' seems to cause problems when using the
> varchar
> data type. MS Access will refuse to update a varchar field if 3
> backslashes
> have been inserted.

The following is a patch of correcting this '\' problem for PostgreSQL
ODBC Driver. I have already applied this patch, and no problem happened.

Hiroki Kataoka <kataoka(at)interwiz(dot)koganei(dot)tokyo(dot)jp>

######## cut here ########
*** convert.c.orig Thu Aug 13 10:58:25 1998
--- convert.c Thu Aug 13 10:59:43 1998
***************
*** 964,969 ****
--- 964,971 ----
continue;
if (si[i] == '\'')
p[out++] = '\\';
+ else if (si[i] == '\\')
+ p[out++] = '\\';

p[out++] = si[i];
}
######## cut here ########

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas G. Lockhart 1998-08-13 02:38:04 Re: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver
Previous Message Paul Lisewski 1998-08-12 23:54:59 RE: [INTERFACES] '\' and varchar data type problem w/ MS Access a nd ODBC driver