MySqlConnection.InfoMessage Event & Pooling

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
shutterstock
Posts: 27
Joined: Sat 28 May 2005 20:37

MySqlConnection.InfoMessage Event & Pooling

Post by shutterstock » Thu 15 Dec 2005 18:41

Hey! I want to use the infomessage event - but i also use pooling.

everytime i create a new connection (which is then grabbed from the pool) do I really need to indicate which callback is used for the InfoMessage event? Shouldn't I be able to just state a single infomessage event - and then everytime i get a connection from the pool, it uses that single infomessage event?

thx
Jon

Serious

Post by Serious » Fri 16 Dec 2005 07:49

You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.

shutterstock
Posts: 27
Joined: Sat 28 May 2005 20:37

Post by shutterstock » Fri 16 Dec 2005 23:52

Serious wrote:You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.
Is this an expensive operation? (setting the callback)

since i use pooled connections - i never keep any lying around....

maybe there should be a wrapper - so that certain operations affect all operations?

Jon

Serious

Post by Serious » Mon 19 Dec 2005 09:41

This is a client-side operation which consists of several calls. Do not be disturbed about performance when using it.

Post Reply