List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 16 2009 8:01pm
Subject:Re: Connect exception
View as plain text  
Attila wrote:
> Any ideas why I would get a problem with calling connect() ?

disconnect() is all but destroying the working bits underlying the 
Connection object, on the theory that you're not going to use it again. 
  It wouldn't be hard to change DBDriver::connect() to rebuild these 
things (mysql_init(), etc.) if it sees that they've been wiped out by a 
disconnect() call.  Patches thoughtfully considered.

Alternately, you can do as most people seem to do, which is destroy the 
Connection object and create a new one.  Same effect, while avoiding 
this limitation.

Connect exceptionAttila16 Jan
  • Re: Connect exceptionWarren Young16 Jan
    • Re: Connect exceptionAttila16 Jan