List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:July 14 2007 4:30am
Subject:Re: Connection::connect() interface is changing
View as plain text  
Jim Wallace wrote:
> 
> FWIW, in my code, the db parameters are passed in from a config file so
> I specify up to port every time.

I do like the automatic determination of connection parameters from just 
the server_addr value in the new code, but I don't see why you can't 
have it both ways:

	Connection(blah, blah, server_addr = 0, port = 0);

If port is zero and there is a colon in server_addr followed by 
something parseable as a port or service name, it can use that.  If port 
is given an explicit value, let that override anything it finds in the 
server address parameter.  If there is no colon and no explicit port is 
given, it takes the default.
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