From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Bill Moran <wmoran(at)potentialtech(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Is there PHP mysql_real_escape_string for postgresql? |
Date: | 2007-12-20 16:03:16 |
Message-ID: | 476A9244.4040903@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bill Moran wrote:
> In response to Erik Jones <erik(at)myemma(dot)com>:
>
>> On Dec 17, 2007, at 8:37 PM, dterrors(at)hotmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Jones | 2007-12-20 16:09:21 | Re: Trigger in partitioned table |
Previous Message | Erik Jones | 2007-12-20 15:59:54 | Re: Is there PHP mysql_real_escape_string for postgresql? |