• 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
Raw SQL with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Raw SQL with bindings


  • Subject: Raw SQL with bindings
  • From: Michael Gargano <email@hidden>
  • Date: Tue, 08 Nov 2011 08:52:28 -0800
  • Acceptlanguage: en-US
  • Thread-topic: Raw SQL with bindings

Hi,

Does anyone have any examples of how to use ERXSQLQueryWithBindingsUtilities.runSqlQueryWithBindings?

Two questions:
1) It seems like it should support named parameters since ERXKeyValueBinding implements ERXSQLBinding, but I can't figure out how the parameter placeholders should look in the query
2) Since I couldn't figure out 1(above) I was just using ERXObjectBindings and the parameter placeholder '?'.  It seems to like this much better but when I pass a date in as a parameter it chokes on postgresql.

Anyone ever use this utility method?

Much thanks.
-Mike

 _______________________________________________
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: Raw SQL with bindings
      • From: Michael Gargano <email@hidden>
  • Prev by Date: Re: D2W and rule controlled visibleEntityNames
  • Next by Date: Rép : Re: ERPDFGeneration tutorial
  • Previous by thread: Rép : Re: Rép : Re: ERPDFGeneration tutorial
  • Next by thread: Re: Raw SQL with bindings
  • Index(es):
    • Date
    • Thread