Recent

Author Topic: sqoKeepOpenOnCommit and closing program  (Read 2445 times)

kapibara

  • Hero Member
  • *****
  • Posts: 610
sqoKeepOpenOnCommit and closing program
« on: March 18, 2017, 08:10:14 am »
Instead of CommitRetaining, I started using TSQLQuery's new property sqoKeepOpenOnCommit. However, when the app is closing there is this error:
Quote
Operation cannot be performed on an active dataset

Manually closing the dataset before exiting the application gets rid of that, but isn't this a bug?
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit

goodname

  • Sr. Member
  • ****
  • Posts: 297
Re: sqoKeepOpenOnCommit and closing program
« Reply #1 on: March 20, 2017, 02:11:58 pm »
I'm not sure it it would be classified as a bug but may be you could do code samples. One with CommitRetaining and one with sqoKeepOpenOnCommit that causes the error. This will make it easy to see if it is an error in SQLdb code or not.

kapibara

  • Hero Member
  • *****
  • Posts: 610
Re: sqoKeepOpenOnCommit and closing program
« Reply #2 on: March 20, 2017, 07:55:17 pm »
Thanks, goodname, but it turned out that rebooting the computer resolved everything. I can't reproduce it anymore.
Lazarus trunk / fpc 3.2.2 / Kubuntu 22.04 - 64 bit

 

TinyPortal © 2005-2018