Page 1 of 1

MySqlConnection.InfoMessage Event & Pooling

Posted: Thu 15 Dec 2005 18:41
by shutterstock
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

Posted: Fri 16 Dec 2005 07:49
by Serious
You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.

Posted: Fri 16 Dec 2005 23:52
by shutterstock
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

Posted: Mon 19 Dec 2005 09:41
by Serious
This is a client-side operation which consists of several calls. Do not be disturbed about performance when using it.