I only gathered this through posts I had read (possibly misread?) in the past.
I then made a logical assumption based on the symptoms and what could cause them. I apologize for the incorrect information in my previous post. Scott -----Original Message----- From: John McNally [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:00 PM To: Turbine Users List Subject: Re: Can't retrieve the primary key after an insert of a new record! "Weaver, Scott" wrote: > > Are you using "native" or "idBroker" for your id's? > > If you are using "native", you will not be able to access the primary key > after an insert. "native" uses the RDBMS' internal ability to generate the > id, which consequently happens during/after the actual insert into the db, > and at this point it is out of Torque's control. For the key to be > available to a Torque OM object, Torque would have to query the db after the > insert transaction was completed, which it does not. > Scott Eade said this already but I would like to make sure the point is taken. The above paragraph is wrong. You can use "native" and "idbroker" interchangeably. The id should still be available after the insert. Perhaps "native" is not usable in the tdk? Try "autoincrement". john mcnally -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
