Backslash-problem

Поиск
Список
Период
Сортировка
От Rolf Luettecke
Тема Backslash-problem
Дата
Msg-id 35E029E7.2637E001@os-net.de
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Thomas G. Lockhart"
Дата:
Сообщение: Re: [INTERFACES] iodbc interface on Unix
Следующее
От: Peter T Mount
Дата:
Сообщение: Re: [INTERFACES] JDBC driver