List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:July 13 2007 5:51am
Subject:Re: Connection::connect() interface is changing
View as plain text  
Yuantu.Huang@stripped wrote:
> 
> It would be good to keep the old Connection when you add new one. 

Unfortunately, I can't think of a way to make that happen.  So many of 
the parameters are default that any overload I can think of is 
ambiguous.  If you can come up with one, do propose it.

The only thing that's really on the table is whether the server_addr and 
password parameters should be swapped back.  For most uses of the 
library, that would make the new interface compatible with the old one. 
  The only people who will see a difference are those who were passing 
values for the port, compress, connect_timeout, socket_name, and 
client_flag parameters.  I think I've adequately justified removing all 
of these.

> Maybe using std::string instead of cchar* makes the code more C++ way.

const char* converts to std::string directly.  It'd still be ambiguous.

> By the way, thank you for your hard work on SSQLS and BLOB. I tested
> v2.3.2 and they are working perfectly.

Thanks for letting me know!
Thread
Connection::connect() interface is changingWarren Young13 Jul
  • Re: Connection::connect() interface is changingDrew M.13 Jul
    • Re: Connection::connect() interface is changingWarren Young13 Jul
  • RE: Connection::connect() interface is changingYuantu.Huang13 Jul
    • Re: Connection::connect() interface is changingWarren Young13 Jul
      • RE: Connection::connect() interface is changingJoel Fielder13 Jul
        • RE: Connection::connect() interface is changingWilliam F. Dowling13 Jul
        • Re: Connection::connect() interface is changingWarren Young14 Jul
          • Re: Connection::connect() interface is changingWarren Young14 Jul
            • Re: Connection::connect() interface is changingAlex Burton15 Jul
              • Re: Connection::connect() interface is changingPeter Garner15 Jul
              • Re: Connection::connect() interface is changingWarren Young16 Jul
          • RE: Connection::connect() interface is changingJoel Fielder16 Jul
            • Re: Connection::connect() interface is changingWarren Young16 Jul
              • Re: Connection::connect() interface is changingAxel Howind16 Jul
                • Re: Connection::connect() interface is changingWarren Young16 Jul
  • Re: Connection::connect() interface is changingAxel Howind13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul
      • Re: Connection::connect() interface is changingAxel Howind16 Jul
  • Re: Connection::connect() interface is changingAlex Burton13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul
  • RE: Connection::connect() interface is changingJim Wallace13 Jul
    • Re: Connection::connect() interface is changingWarren Young14 Jul