Re: Special characters in SQL queries

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: Special characters in SQL queries
Дата
Msg-id 3E6EEC5B.E979BF20@rodos.fzk.de
обсуждение исходный текст
Ответ на Special characters in SQL queries  (Vernon Wu <vernonw@gatewaytech.com>)
Список pgsql-sql
>
> I don't program in C at all, but Java. Although I can make a way to
call the C library function
> from Java, it isn't suitable solution, I believe.
> I only desire to find out all the type of characters at the present
time so that I can strip out any
> potential problem sources in text. Who know what characters a user
will enter.
>
As Victor Yegorov mentioned
Take a look at the source code of PQescapeString() in the source
distribution of postgres. I hope, you'll find all the chars you're
interested in.
or refer to Binary Strings within the Data Types chapter of the doc.
This shows how to deal with "non-printables" and "printables".

Regards, Christoph




В списке pgsql-sql по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: SERIAL does not ROLLBACK
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Special characters in SQL queries