Backslash-problem - Mailing list pgsql-interfaces

From Rolf Luettecke
Subject Backslash-problem
Date
Msg-id 35E029E7.2637E001@os-net.de
Whole thread Raw
List pgsql-interfaces
Hi Bruce,

I had difficulties to insert varchar/text data into a table,
because the data contains "Backslashes". The problem occured
during access from the "webside" (apache/perl/DBD) and by
accessing the table from M$-Access/ODBC (Vers. ...249) too.
To work around the problem, I deleted a lot of stuff in
the sourcefile: .../src/backend/parser/scansup.c:

...
        for (i = 0, j = 0; i < len; i++)
        {
                newStr[j] = s[i];
                j++;
        }
        newStr[j] = '\0';
        return newStr;
...

Now it seems to work ok, inserts from both frontends are
stored correctly - but what is the dark-side of this hack ???

Regards
Rolf Luettecke



pgsql-interfaces by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [INTERFACES] iodbc interface on Unix
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] JDBC driver