Then the row must be inserted and then deleted immediately, it's a fudge but it won't need to happen everytime. Although I would like to know more about how oef uses the newPrimaryKeys method. Does it request batches of PKs to be used at a later time? If so, can that number be increased?

Cheers, Corin.

On 16/11/2005, at 6:34 PM, Anjo Krank wrote:

Am 16.11.2005 um 08:08 schrieb Corin Lawson:
The only concern I have is how do retrieve the auto_increment field for a particular table.

Which is exactly the part that can't be done...

From what I recall with Mysql is that you insert a row and then retrieve a last_insert_id. Which implies you have to insert the row *first*



_______________________________________________
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]

Reply via email to