Recent

Author Topic: SQLDB, tfield.oldvalue shows value from current row not activerecord, bug?  (Read 600 times)

Soner

  • Full Member
  • ***
  • Posts: 108
I am using TDataset.ActiveRecord property.

When one field is not changed, then field.oldvalue shows the value from current row not from active record.
Only when the field value changed then it show right value.
Is this bug?

Look at my comments on screenshots.

(I had similar error on zeoscomponents.
http://zeoslib.sourceforge.net/viewtopic.php?f=28&t=84847
)

Soner

  • Full Member
  • ***
  • Posts: 108
Re: SQLDB, tfield.oldvalue shows value from current row not activerecord, bug?
« Reply #1 on: December 10, 2018, 01:29:23 pm »
this is example project:

Soner

  • Full Member
  • ***
  • Posts: 108
Re: SQLDB, tfield.oldvalue shows value from current row not activerecord, bug?
« Reply #2 on: December 12, 2018, 09:46:14 am »
Is nobody using tfield.olvalue, tdataset.activerecord in his programs?

Soner

  • Full Member
  • ***
  • Posts: 108
Re: SQLDB, tfield.oldvalue shows value from current row not activerecord, bug?
« Reply #3 on: December 12, 2018, 02:19:08 pm »
Yes it is bug, It should show correct value or nothing.I reported it here
https://bugs.freepascal.org/view.php?id=34694

(PS: In example from above save-button does not work. It is half ported zeos example.)