Question about performance RowSet

Re: Question about performance RowSet

Postby Eroni » Thu Mar 21, 2024 2:07 pm

nageswaragunupudi wrote:
Run time error:

Which version of FWH did you test with please?


Mr Rao,
Fivewin 23.10 xHarbour 123, BCC 77.
FWH 1709 BCC72 MySql MariaDB
Visual Studio 2019 / Xamarin / C#
User avatar
Eroni
 
Posts: 98
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil

Re: Question about performance RowSet

Postby nageswaragunupudi » Thu Mar 21, 2024 10:39 pm

Thank you very much for pointing out this error.
This example works perfectly fine with Harbour but fails with xHarbour with this run-time error.
This bug is due to my ignoring the difference in the behavior between Harbour and xHarbour of a function PValue().
We regret the inconvenience.

You can fix this problem by making a small correction in TArrayData class in \fwh\source\classes\tarrdata.prg

Please locate the line:
Code: Select all  Expand view  RUN
METHOD New( aData, aStruct ) CLASS TArrayData


Please change it as:
Code: Select all  Expand view  RUN
METHOD New( aData, aStruct, p3 ) CLASS TArrayData


With this fix, the above examples works perfectly with xHarbour also.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Question about performance RowSet

Postby nageswaragunupudi » Thu Mar 21, 2024 10:45 pm

In the next release we will have:
Code: Select all  Expand view  RUN
oRec := oCn:Record( cTable )
oRec:Edit()

for editing and saving a blank record.

Code: Select all  Expand view  RUN
oRec := oCn:Record( cTable, cWhere )
oRec:Edit()

for editing a single existing record and saving the modifications.

oCn:Record(...) creates a FWMariaRecord class object.
This class is derived from TDataRow class and can be used/edited and saved like any normal TDataRow object.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Question about performance RowSet

Postby Eroni » Fri Mar 22, 2024 12:25 pm

nageswaragunupudi wrote:Thank you very much for pointing out this error.
This example works perfectly fine with Harbour but fails with xHarbour with this run-time error.
This bug is due to my ignoring the difference in the behavior between Harbour and xHarbour of a function PValue().
We regret the inconvenience.

You can fix this problem by making a small correction in TArrayData class in \fwh\source\classes\tarrdata.prg

Please locate the line:
Code: Select all  Expand view  RUN
METHOD New( aData, aStruct ) CLASS TArrayData


Please change it as:
Code: Select all  Expand view  RUN
METHOD New( aData, aStruct, p3 ) CLASS TArrayData


With this fix, the above examples works perfectly with xHarbour also.

Mr Rao, works fine, thank you.
User avatar
Eroni
 
Posts: 98
Joined: Fri Jul 21, 2006 7:15 pm
Location: Criciuma/SC Brazil

Re: Question about performance RowSet

Postby nageswaragunupudi » Fri Mar 22, 2024 4:09 pm

Thanks for the confirmation.
Fixed properly in the next version
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 50 guests