Recent

Author Topic: Lazarus 2.0.12 dies when editing SQL  (Read 2969 times)

TheNick

  • New Member
  • *
  • Posts: 24
  • Pax vobiscum
Lazarus 2.0.12 dies when editing SQL
« on: March 10, 2021, 10:23:37 pm »
Hi,
When editing SQLtext in a TSQLQuery-component and when getting an error in the SQL, Lazarus 2.0.12 dies. Anyone seen this behaviour on Windows 10 running a PostgreSQL 12 connection?

Br,
Niclas
Never give up, never surrender! 😃

Zvoni

  • Hero Member
  • *****
  • Posts: 2980
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #1 on: March 11, 2021, 07:47:57 am »
Not when changing the SQL-Property.
But Lazarus gives me an Access Violation, when i have a TSQLQuery-Component, which is set to active in the OI, and when i try to set it to inactive in the Object-Inspector, Lazarus goes BOOM.

Bottom Line: Don't set anything of the TSQL-Trinity to active in the OI. Only from Code.
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

dsiders

  • Hero Member
  • *****
  • Posts: 1430
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #2 on: March 11, 2021, 05:57:45 pm »
Not when changing the SQL-Property.
But Lazarus gives me an Access Violation, when i have a TSQLQuery-Component, which is set to active in the OI, and when i try to set it to inactive in the Object-Inspector, Lazarus goes BOOM.

Bottom Line: Don't set anything of the TSQL-Trinity to active in the OI. Only from Code.

Have you reported this as bug? Is it specific to a DB component set?
Preview the next Lazarus documentation release at: https://dsiders.gitlab.io/lazdocsnext

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4571
  • I like bugs.
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #3 on: March 11, 2021, 06:16:11 pm »
Have you reported this as bug? Is it specific to a DB component set?
It is already reported many times. See :
 https://bugs.freepascal.org/view.php?id=38352
and its related issues.
Particularly nasty to fix.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #4 on: March 11, 2021, 09:48:51 pm »
It is already reported many times. See :
 https://bugs.freepascal.org/view.php?id=38352
and its related issues.
Particularly nasty to fix.
It's fixed in FPC trunk.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4571
  • I like bugs.
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #5 on: March 11, 2021, 09:57:04 pm »
It's fixed in FPC trunk.
Does it not need any changes in Lazarus components? Maybe not, good so!
The reports, or at least one of them, can be open for a while. Otherwise somebody will report the same issue again.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

balazsszekely

  • Guest
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #6 on: March 11, 2021, 10:09:22 pm »
I spent almost an hour fixing the issue, when I noticed that the bug is already fixed.  :) Another hour wasted...
Quote
Does it not need any changes in Lazarus components?
No, the bug is in BufDataset.pas(FPC).
https://bugs.freepascal.org/view.php?id=38509

TheNick

  • New Member
  • *
  • Posts: 24
  • Pax vobiscum
Re: Lazarus 2.0.12 dies when editing SQL
« Reply #7 on: March 14, 2021, 09:35:34 pm »
Thank you all for your responses. So, just have to wait for the bugfix to be released.  ;D

Cheers,
Niclas
 
Never give up, never surrender! 😃

 

TinyPortal © 2005-2018