• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOKeyValueQualifier not escaping single quote character
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOKeyValueQualifier not escaping single quote character


  • Subject: Re: EOKeyValueQualifier not escaping single quote character
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Fri, 16 Jan 2009 12:25:05 -0500

My fault... I discovered the problem was in some very low level stuff I had that given a qualifier it creates a SQL expression that aggregates some fields in the entity. The low level stuff was replacing bindings inline and that's where the problem occurred. I added code to escape the single quote character at that level and now it works fine.

Sorry!!


On Jan 15, 2009, at 7:58 PM, Lachlan Deck wrote:

On 16/01/2009, at 11:25 AM, Ricardo J. Parada wrote:

The following qualifier:

EOQualifier q = new EOKeyValueQualifier(key, QualifierOperatorEqual, "Joe's");

when used to fetch result's in an oracle error when fetching from the database:

ORA-00907: missing right parenthesis

Wasn't EOF supposed to escape this thing?

Have you tried this?
new EOKeyValueQualifier(key, EOQualifier.QualifierOperatorLike, string);


with regards,
--

Lachlan Deck




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >EOKeyValueQualifier not escaping single quote character (From: "Ricardo J. Parada" <email@hidden>)
 >Re: EOKeyValueQualifier not escaping single quote character (From: Lachlan Deck <email@hidden>)

  • Prev by Date: Re: [OT - kinda] WOWODC 2009 webcasting?
  • Next by Date: Re: Right way to share DB structure and fixture during development
  • Previous by thread: Re: EOKeyValueQualifier not escaping single quote character
  • Next by thread: MySQL Index Generation
  • Index(es):
    • Date
    • Thread