| You are indeed correct. I changed it back to what it should be, which is: NSArray rawRows = EOUtilities.rawRowsForSQL(ec, "api", "UPDATE EO_PK_TABLE SET pk=LAST_INSERT_ID(pk+1) where lower(name)='"+entity.externalName().toLowerCase()+"'"); rawRows = EOUtilities.rawRowsForSQL(ec, "api", "select last_insert_id()", keys); NSDictionary foo = (NSDictionary)rawRows.get(0); BigDecimal bd = (BigDecimal)foo.valueForKey("pk"); This is safe across multiple instances. I had changed the SQL when trying to figure out what the #$%#% was going on. On Jul 11, 2006, at 1:11 PM, Chuck Hill wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
