You need to have a pk in order to do a doDelete. For tables w/o pk, I just end up 
using regular SQL in JDBC. You can get a JDBC connection from Torque.getConnection(). 
But remember to call Torque.closeConnection() afterwards.

Howard Lin

> -----Original Message-----
> From: Patryk Laurent [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 1:32 PM
> To: Turbine Torque Users List
> Subject: doDelete requires "KeyDef attributes"?
> 
> 
> Hi,
> 
> I got the following error message while attemping to delete records:
> 
> "TorqueException: You must specify KeyDef attributes for this
> TableDataSet in order to delete a Record."
> 
> Would someone mind interpreting this for me?  The table from 
> which I am
> trying to delete does not have any primary keys, but is that relevant?
> 
> Thank you,
> Patryk
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to