• 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
Web Service with PostgreSQL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Web Service with PostgreSQL


  • Subject: Web Service with PostgreSQL
  • From: "Luigi Giannini" <email@hidden>
  • Date: Mon, 1 Oct 2007 17:06:20 +0200

Hi to everyone!
I'm a newbie to webobjects. I'm starting modeling a DB on PostgreSQL
then try to create a web service (via Xcode preconfigured template).
If I create an operation with an = operator it runs. But if I create
an operation with a like or
caseIsensitiveLike operator it fails with this error:

Exception:
com.webobjects.foundation.NSForwardException
[org.apache.axis.AxisFault] java.lang.IllegalArgumentException:
com.webobjects.jdbcadaptor.JDBCAdaptorException: EvaluateExpression
failed: <com.webobjects.jdbcadaptor.JDBCExpression: "SELECT
t0.pat_attrs, t0.pat_id, t0.pat_id_issuer, t0.pat_name, t0.pk,
t0.priv_type FROM public.priv_patient t0 WHERE UPPER(t0.pat_name) LIKE
UPPER(?) ESCAPE '\'" withBindings: 1:"ANTONACCIO"(patName)>:
   Next exception:SQL State:42601 -- error code: 0 -- msg: ERROR:
unterminated quoted string at or near "'\'": Exception trying to
invoke operation: searchPrivPatient

I read that the problem is the generated SQL and I think that a
suggestion made by Guido Neitzer on a similar topic on August (turning
off the variable binding) can help solve this problem but I don't know
where add this setting:

Guido Neitzer <email@hidden>:
> ... , it seems you use the PostgreSQL plugin - so, if that is okay
> for you, you can try turning on off the variable binding with:
>
> com.webobjects.jdbcadaptor.PostgresqlExpression.disableBindVariables
> = true

Or there's others thing to monitor and fix?

Can someone help me ?
A suggestion?
A tip?

Thanks in advance !


--
Luigi Giannini
_____________________
email@hidden
Tel. 328.1161861
Fax 0883.1950191
 _______________________________________________
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: Web Service with PostgreSQL
      • From: Lachlan Deck <email@hidden>
    • Re: Web Service with PostgreSQL
      • From: "Daniele Corti" <email@hidden>
  • Prev by Date: (no subject)
  • Next by Date: Re: Web Service with PostgreSQL
  • Previous by thread: (no subject)
  • Next by thread: Re: Web Service with PostgreSQL
  • Index(es):
    • Date
    • Thread