Thought inc.

The Dynamic O/R Mapping Company

CocoBase Technical Support Forums
For access to developer site with software download and doc's, please request CocoBase download and password
will be emailed to you. Response to posts will appear when answered by THOUGHT Support team.
NOTE:You must register separately with forum in order to post your questions, please click on register icon below.
Home   Frequently Asked Questions   Search   Edit your profile   Registration is free!  
Email This Page to Someone!
Show a Printable Version
CocoBase Enterprise O/R Forums > CocoBase Bug Reports
binddelete seems to delete everything in table
< Previous Thread     Next Thread >
Thread    Post New Thread     Post A Reply

Registered: Jan 2002
Posts: 11

Hi, when attempting to delete a row from a table I was using the following code:

Transaction txn = new Transaction(MapBase.getDriver());
Donors donor = new Donors();
if (donor != null) {

However, all of the rows in the table were getting deleted. If I didn't call binddelete() then just the one row got deleted. Is this a bug, or am I doing something wrong here??

I'm using the Oracle OCI driver, with cocobase4_0207.

Thank you,
Dave Ihnen

02-14-2002 10:50 AM
Click Here to See the Profile for davidihnen    Find more posts by davidihnen        Edit/Delete Message    Reply w/Quote    IP: Logged

Registered: Apr 2001
Posts: 19

What does donor.delete do? You're probably nulling out the
very values that CocoBase uses to delete your data.

Did you try executing myBase.setDebug(true); before calling
the txn.commit(), or did you try txn.setDebug(true); to
see what's happening in CocoBase?

Most of the time in situations like this either the map isn't
properly configured for the attribute you're trying to use
as a key, or some other such issue. The debug mode should
help you to debug your code and your map better...


02-19-2002 03:54 PM
Click Here to See the Profile for admin    Find more posts by admin        Edit/Delete Message    Reply w/Quote    IP: Logged
All times are PST (US)    Post New Thread     Post A Reply
Forum Jump:
< Previous Thread     Next Thread >

Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author. Messages can be deleted by their author.
Posts: HTML code is OFF. Smilies are OFF. vB code is OFF. [IMG] code is OFF.

Admin Options:
Open / Close Thread
Move Thread
Delete Thread
Edit Thread

< Contact Us - THOUGHT Inc. >

Copyright © Jelsoft Enterprises Limited 2000.
Copyright 2001 All Rights Reserved, THOUGHT Inc.