Subject | Re: [IBO] little bug in IBO4.5(A/B) |
---|---|
Author | Carlos H. Cantu (TeamFB) |
Post date | 2006-01-16T20:28:13Z |
I use CachedUpdates for a long time and don't remember to have this
problem. Maybe there is a specific situation here that doesn't trigger
the problem.
[]s
Cantu (Membro do TeamFB - FireBase)
http://www.warmboot.com.br
FireBase - http://www.FireBase.com.br
JW> This was a VERY BAD bug, not a little bug. I don't know how this got past
JW> me. Inserts and deletes only were broken, but this was still a very major
JW> problem.
JW> It is now fixed and will be in the next release.
JW> Apparently people don't use CachedUpdates with IBO much? That's a little
JW> unnerving considering the amount of work I put into them... But, they
JW> definitely will work now.
JW> Jason
JW> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
JW> without the need for BDE, ODBC or any other layer.
JW> ___________________________________________________________________________
JW> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
JW> keyword-searchable FAQ, community code contributions and more !
JW> Yahoo! Groups Links
JW>
problem. Maybe there is a specific situation here that doesn't trigger
the problem.
[]s
Cantu (Membro do TeamFB - FireBase)
http://www.warmboot.com.br
FireBase - http://www.FireBase.com.br
JW> This was a VERY BAD bug, not a little bug. I don't know how this got past
JW> me. Inserts and deletes only were broken, but this was still a very major
JW> problem.
JW> It is now fixed and will be in the next release.
JW> Apparently people don't use CachedUpdates with IBO much? That's a little
JW> unnerving considering the amount of work I put into them... But, they
JW> definitely will work now.
JW> Jason
>> -----Original Message-----JW> ___________________________________________________________________________
>> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
>> Behalf Of l_gilbert_fr
>> Sent: Thursday, June 23, 2005 3:41 AM
>> To: IBObjects@yahoogroups.com
>> Subject: [IBO] little bug in IBO4.5(A/B)
>>
>>
>> Hi,
>>
>> I found a bug in TIB_NodeListe.AdjCuCounts in IBO 4.5B....
>>
>> I used IBO 4.3 in my application without problem (since IBO
>> 3.x) and I
>> try
>> to use last version of IBO.
>>
>> But I have a big problem with IBO 4.5(A&B) : when I apply changes in
>> an
>> insert form, an exception occurs in TIB_Transaction.ApplyUpdates with
>> "E_transaction_is_active".
>>
>> I found that UpdatesPending was always true even after a
>> TIBODataSet.ApplyUpdates.
>>
>> After manys search, I found that TIB_NodeListe.AdjCuCounts works
>> differently
>> : you have to replace "dec()" by "inc()" in order to have correct
>> counts.
>>
>> procedure TIB_NodeList.AdjCuCounts( ANode: PIB_Node; AIncrement:
>> integer );
>> begin
>> if rfEdited in ANode.RowFlags then
>> Inc( cuEdtCnt, AIncrement )
>> else
>> if rfInserted in ANode.RowFlags then
>> // Dec( cuInsCnt, AIncrement )
>> Inc( cuInsCnt, AIncrement )
>> else
>> if rfDeleted in ANode.RowFlags then
>> // Dec( cuDelCnt, AIncrement );
>> Inc( cuDelCnt, AIncrement );
>> end;
>>
>> Regards,
>>
>> lg.
JW> IB Objects - direct, complete, custom connectivity to Firebird or InterBase
JW> without the need for BDE, ODBC or any other layer.
JW> ___________________________________________________________________________
JW> http://www.ibobjects.com - your IBO community resource for Tech Info papers,
JW> keyword-searchable FAQ, community code contributions and more !
JW> Yahoo! Groups Links
JW>