It handles all the quoting for you.  At least I don't have to escape any
quotes in my apps.

On Fri, 21 Jan 2005, Bobby Lawrence wrote:

> In situations when using the addEqualTo method on a Criteria object, if
> the column being compared against is of type VARCHAR, does OJB enclose
> the criteria in single quotes?
> What if the string has a single quote in it?
> In Oracle SQL syntax, you would need double quotes....
> WHERE name = 'O''Neil'
>
> --Bobby
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to