EOAdaptorChannel's evaluateExpression()
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