Raw SQL with bindings
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