transactions - with midas and mydac

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
CFaiga
Posts: 14
Joined: Sun 12 Feb 2006 09:28

transactions - with midas and mydac

Post by CFaiga » Sat 24 Jun 2006 09:10

Hi

How does one do transacations with mydac, mysql and midas
while calling an number of Stored procedures


I am using
-Delphi 7 with
- MySql ver5.0.21,
- Midas and
- Mydac


thanks

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Mon 26 Jun 2006 14:24

To control transactions you should use StartTransaction, Commit, Rollback methods of TMyConnection component. You can start transaction before calling your stored procedure and commit or cancel it after the procedure finishes. Depending on your task two or more procedures can be called in a single transaction.

Post Reply