Hi all,

I have a problem escaping quotes in my SQL queries. I initially assumed that
cakePHP's implementation for postgres in cake/libs/model/dbo_postgres.php
escapes all data strings using pg_escape_string(). I have a string which is
already in single quotes. I am supplying that to the model->save() function
expecting that cake will take care of the rest. But the query fails because
of the quotes.

I know this is a very common issue and I tried everything (addslashes, etc.)
but cant kind a way out. Please let me know if I am missig something.

- Nirav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to