• 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
Stored Procedure Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stored Procedure Question


  • Subject: Stored Procedure Question
  • From: Jonathan Miller <email@hidden>
  • Date: Mon, 2 Jan 2006 13:36:57 -1000

Hi-

I'm trying to call a stored procedure in my database using the EOUtilities.executeStoredProcedure method but it seems that when EO creates the SQL it creates extraneous {} around the SQL call.

I'm using WO 5.3, Openbase 9.0

Here is the Java code

NSDictionary dict = new NSDictionary(aPerson.valueForKey("principalid"), new String("principalid"));
try {
NSDictionary results = EOUtilities.executeStoredProcedureNamed(ec, "setPrimaryToFalse", dict);
} catch(com.webobjects.jdbcadaptor.JDBCAdaptorException e) {
NSLog.out.appendln("Procedure Failed");
}

Here is the SQL code

//THREAD_0x424e20:157932975.355600:2006-01-02 12:16:15 -1000
{ call SET_PRIMARY_TO_FALSE ('Jon')}   
go

Does anybody know if I'm doing something wrong?

Thanks in advance

Jon


 _______________________________________________
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: Stored Procedure Question
      • From: Nathan Walker <email@hidden>
  • Prev by Date: Re: EOModel error
  • Next by Date: Re: EOModel error
  • Previous by thread: Re: EOModel error
  • Next by thread: Re: Stored Procedure Question
  • Index(es):
    • Date
    • Thread