Calling Disconnect After Execption

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
iad
Posts: 34
Joined: Fri 24 Nov 2006 07:38

Calling Disconnect After Execption

Post by iad » Wed 24 Jan 2007 02:21

Hi Team,
quick question,
let's assum that during execution of qeury / Script there is exception , do i need to call disconnect for the connection that these are using ?
(i mean int he exception section)
the reason i'm asking is that i don;t want open connection in the 'Air'
Lior,

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

Post by Antaeus » Wed 24 Jan 2007 08:35

Generally you do not need to disconnect if an error occurs during query execution.

Post Reply