Re: Stripping apostrophes from data

Поиск
Список
Период
Сортировка
От Leon Mergen
Тема Re: Stripping apostrophes from data
Дата
Msg-id 5eaaef180708201008n2c83c88eh8a1b6445c3845c1a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Stripping apostrophes from data  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general


On 8/20/07, Joshua D. Drake <jd@commandprompt.com> wrote:
>   Alternately, is there some way of inserting or selecting data from the db which doesn't require the use of apostrophes for non-numeric fields?

Uhmm just prepare all your statements and this shouldn't be an issue.

.. which is a good idea anyway when you're dealing with data which cannot easily be verified as 'safe' (such as text data) -- it's a great way to prevent all SQL injections, even when you're not expecting quotes.

--
Leon Mergen
http://www.solatis.com

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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Stripping apostrophes from data
Следующее
От: luca.ciciriello@email.it
Дата:
Сообщение: Re: Installation problems