on 11/27/2000 8:09 PM, "Will Stranathan" <[EMAIL PROTECTED]> wrote:

> The object returned from WhateverPeer.doInsert(whatever) is supposed to
> be an Integer of the unique ID that got added, right?  When I set the
> ROWID field on a table to be an AUTOINCREMENT, items are getting added
> properly, but the object returned is always null.
> 
> When I turn off the autoincrememt, I added an element to the id_table
> with the name of the table, and a NEXT_ID and QUANTITY.  When I try this
> method to do an insert, it_table updates that entry, setting the
> QUANTITY to 0, and the ROWID for the newly entered item is 0.  And the
> object returned from doInsert() is again null;
> 
> What do I have to do in the Map or Peer class to specify how I'm getting
> ID's?  Is there something else I'm missing here?
> 
> Will Stranathan

One thing: 

Make sure that the id_table has an entry for the table that you are doing
inserts into.

-jon

-- 
twice of not very much is still a lot more than not very much



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to