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
MySqlConnection.InfoMessage Event & Pooling
-
- Posts: 27
- Joined: Sat 28 May 2005 20:37
-
- Posts: 27
- Joined: Sat 28 May 2005 20:37
Is this an expensive operation? (setting the callback)Serious wrote:You have to specify InfoMessage for each connection component you use, even if these connections are pooled from the pool.
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