Lazarus – brak InTransaction

0

Witam, w Delphi 7 zaczynając transakcję zapisu do bazy pisałem taki kod:

try
  if Form1.SQLTransaction1.Active then
   Form1.SQLTransaction1.Commit;
  Form1.SQLTransaction1.
   if not Form1.SQLTransaction1.InTransaction then
   begin

Pisząc w Lazarusie 2.0 nie ma InTransaction - pytanko która metoda odpowiada tej z Delphi.

2

Rzuć okiem na ten wątek: https://forum.lazarus.freepascal.org/index.php?topic=19359.0 - "the transaction is represented by the SQLTransaction component. And the transaction starts when you set your SQLTransaction.Active to true (and if you don't do it yourself, then it will be activated automatically when you open a dataset) and remains active until you explicitely commit or rollback "

1 użytkowników online, w tym zalogowanych: 0, gości: 1