List:MySQL++« Previous MessageNext Message »
From:Dino Korah Date:November 25 2009 5:08pm
Subject:Re: set_option ( ReconnectOption )
View as plain text  
You will have to excuse me. Sorry to ask suck a silly question.
I wanted to make sure I was doing the right thing, before I ask what I 
really wanted to ask.

I am working with 3.0.9 and there seems to be no way I can effectively 
use it to reconnect in scenario where I need to run a set of SQLs to 
setup the connection for real use in my application. They are mostly 
session variables meant for auto_increment.

Any ideas?


Warren Young wrote:
> Dino Korah wrote:
>> What is the best way to use ReconnectOption ?!
> 
> I wasn't aware that there were alternatives.  Is there another way 
> besides the following?
> 
>     conn.set_option(new ReconnectOption(true));
> 
>> I couldnt find any good sample code. 
> 
> http://tangentsoft.net/mysql++/doc/html/userman/tutorial.html#connopts
> 
> Were you expecting a section in the user manual with example code 
> showing how to set every one of the 30 options we currently support, 
> which differ only in the single line of code calling set_option()?
> 
> Yes, I'm being snarky, but also serious.  You didn't find what you 
> expected, so what exactly did you expect to find?  I can't fix it if I 
> don't know, and I'm telling you I don't know. :)
Thread
set_option ( ReconnectOption )Dino Korah25 Nov
  • Re: set_option ( ReconnectOption )Warren Young25 Nov
    • Re: set_option ( ReconnectOption )Dino Korah25 Nov
      • Re: set_option ( ReconnectOption )Warren Young25 Nov
        • Re: set_option ( ReconnectOption )Dino Korah25 Nov
          • Re: set_option ( ReconnectOption )Warren Young25 Nov
            • Re: set_option ( ReconnectOption )Dino Korah26 Nov
              • Re: set_option ( ReconnectOption )Warren Young26 Nov
                • Re: set_option ( ReconnectOption )Dino Korah26 Nov
                  • Re: set_option ( ReconnectOption )Warren Young26 Nov
                • Re: set_option ( ReconnectOption )Dino Korah26 Nov
                  • Re: set_option ( ReconnectOption )Warren Young26 Nov
            • Re: set_option ( ReconnectOption )Dino Korah26 Nov
              • RE: set_option ( ReconnectOption )F.N. Bruggeman26 Nov