• 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
EOAdaptorChannel's evaluateExpression()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOAdaptorChannel's evaluateExpression()


  • Subject: EOAdaptorChannel's evaluateExpression()
  • From: Ricardo Parada <email@hidden>
  • Date: Tue, 12 Jul 2005 20:03:56 -0500


Hi,

I created an instance of EOSQLExpression that contains a SQL statement similar to this:

INSERT INTO ...
SELECT ...
FROM ...
WHERE ...

I then use the EOAdaptorChannel's evaluateExpression() to execute the expression. The SQL statement executes great and I'm able to insert a ton of records with a single SQL statement. (I love EOF :-) )

However, I'm wondering if I can get the number of records inserted. I tried using EOAdaptorChannel's fetchRow() but I get nothing back. Right now the work around is to build and execute a separate EOSQLExpression that counts the records inserted, e.g. something like this:

SELECT COUNT(*)
FROM ...
WHERE ...

It works great but it would be nicer if I could get the number of records inserted when I execute the insert-select statement. Then I wouldn't need to create and execute the counting expression.

Thanks,
Ricardo Parada
Medical Present Value, Inc.

_______________________________________________
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: EOAdaptorChannel's evaluateExpression()
      • From: Patrick Middleton <email@hidden>
  • Prev by Date: Re: Solutions site
  • Next by Date: Re: WebObjects and Email
  • Previous by thread: Re: Solutions site
  • Next by thread: Re: EOAdaptorChannel's evaluateExpression()
  • Index(es):
    • Date
    • Thread