Re: Is there PHP mysql_real_escape_string for postgresql?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Is there PHP mysql_real_escape_string for postgresql?
Дата
Msg-id 476A9244.4040903@archonet.com
обсуждение исходный текст
Ответ на Re: Is there PHP mysql_real_escape_string for postgresql?  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
Bill Moran wrote:
> In response to Erik Jones <erik@myemma.com>:
>
>> On Dec 17, 2007, at 8:37 PM, dterrors@hotmail.com wrote:
>>
>>> In php is there a postgresql version of mysql_real_escape_string() ?
>> You have both pg_escape_string and pg_escape_bytea available.
>
> Is there a mysql_fake_escape_string()?  Should PostgreSQL have a
> pg_pretend_to_escape_string() that effectively does nothing?

Ah, that's not real as in "reality", it's réal as in "royal" because the
initial code submission came from Queen Sofía of Spain who knows a
surprising amount about hacking in "C" but still maintains that
referential integrity is best handled in the application layer.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Erik Jones
Дата:
Сообщение: Re: Is there PHP mysql_real_escape_string for postgresql?
Следующее
От: "T.J. Adami"
Дата:
Сообщение: Re: to realise the dark side of Microsoft SQL Server...?