• 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
Weird "like" instead of "=" in WO generated SQL Query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird "like" instead of "=" in WO generated SQL Query


  • Subject: Weird "like" instead of "=" in WO generated SQL Query
  • From: Gaastra Dennis - WO Lists <email@hidden>
  • Date: Sun, 3 Dec 2006 14:41:09 -0800

Dear List,

We get an error message when WO generates a weird SQL query:

SELECT t0."address_Additional", t0."address_City", t0."address_City3C", t0."address_Country", t0."address_Line1", t0."modify_date", t0."modify_user_id", t0."office_id" FROM "Client" t0, "Branch_Client" T1, "Branch" T2 WHERE (t0."office_id" = 1000004 AND T2."branch_id" like 1000002) AND t0."client_id" = T1."client_id" AND T1."branch_id" = T2."branch_id"

Results in:

"Next exception:SQL State:00       subclass = " -- error code: 208 -- msg: Semantic error 208. _expression_ in LIKE is not of type CHARACTER."

Replacing the "like" with an "=" fixes the problem. However, this SQL query is generated by WO, and needs to remain generated by WO. Our code supplies two ANDed EOKeyValueQualifiers, one of them holds the "QualifierOperatorContains" over a flattened M:N relationship; the other one is just a regular QualifierOperatorEqual.


Question: Who is to blame: us, the Frontbase plugin, or WebObjects? ... and how to fix this?

Thank you for you help.

With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.
HQ:  (+1) 604.921.1333
Fax:  (+1) 604.921.4313
Cell:  (+1) 604.787.2532
Email: email@hidden
Web: www.webappz.com & www.1tracker.com




This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. WEBAPPZ Systems, Inc., 726 - 1489 Marine Drive, West Vancouver, BC, CANADA V7T 1B8, www.webappz.com



 _______________________________________________
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

  • Follow-Ups:
    • Re: Weird "like" instead of "=" in WO generated SQL Query
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: batch fetching
  • Next by Date: Re: embedded frameworks + split install
  • Previous by thread: Re: batch fetching
  • Next by thread: Re: Weird "like" instead of "=" in WO generated SQL Query
  • Index(es):
    • Date
    • Thread