Excellent, thank you.  I was double-checking everything else in the
meantime to make sure something hadn't gone wrong.  

It would be great if the requirement for a Primary Key were mentioned in
the notes in the Torque Tutorial (Part 4), section called "Deleting
Rows"

I'm likely to forget this primary-key-for-deleting requirement at some
point or another and that section in the tutorial is the first place I
would look.

Thanks again,
Patryk


On Tue, 2002-10-08 at 14:04, Howard Lin wrote:
> 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]>
> 
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to