Changed behavior for MyConnection request

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Changed behavior for MyConnection request

Post by kaffeburk » Sat 03 Dec 2011 08:37

When MyQuerie's editor is invoked and the MyConnection connected property is set to "False", it will change to "True". I would prefer that it did not change state in this case. When a user is running the program, and the connected is set to "true" it will try to connect before the login with proper password is done - and with the password stored in the TMyconnectin witch is for development only, it will also connect to the "localhost". I can trap that the connection is connected with code and then manually close it - but after doing that a few times every day it stats to get boring so i make this post.

AndreyZ

Post by AndreyZ » Mon 05 Dec 2011 15:57

Hello,

To avoid this problem, you should set the TMyConnection.Options.KeepDesignConnected property to False. The KeepDesignConnected property is used to prevent an application from establishing a connection at the time of startup. For more information about this property, please read the MyDAC documentation.

kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Post by kaffeburk » Sun 11 Dec 2011 06:37

Hi,

That does indeed solve the problem. Thanx.

AndreyZ

Post by AndreyZ » Mon 12 Dec 2011 16:53

If any other questions come up, please contact us.

Post Reply