• 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
Re: EO_PK_TABLE and auto_increment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO_PK_TABLE and auto_increment


  • Subject: Re: EO_PK_TABLE and auto_increment
  • From: Corin Lawson <email@hidden>
  • Date: Thu, 17 Nov 2005 09:29:05 +1100

Furthermore, if I'm wrong in my assumption it should be possible for the plugin (or the channel?) to maintain a space of new PKs.

I would need to know more about the life of the objects involved to make those decisions.

Corin.
On 17/11/2005, at 9:23 AM, Corin Lawson wrote:

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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: EO_PK_TABLE and auto_increment (From: Corin Lawson <email@hidden>)
 >Re: EO_PK_TABLE and auto_increment (From: Corin Lawson <email@hidden>)
 >Re: EO_PK_TABLE and auto_increment (From: Arturo PĂ©rez <email@hidden>)
 >Re: EO_PK_TABLE and auto_increment (From: Corin Lawson <email@hidden>)
 >Re: EO_PK_TABLE and auto_increment (From: Anjo Krank <email@hidden>)
 >Re: EO_PK_TABLE and auto_increment (From: Corin Lawson <email@hidden>)

  • Prev by Date: Re: EO_PK_TABLE and auto_increment
  • Next by Date: Re: SharedEditingContext Write Locks?
  • Previous by thread: Re: EO_PK_TABLE and auto_increment
  • Next by thread: Swing desktop app + EOF, three-tier
  • Index(es):
    • Date
    • Thread