From: Warren Young
Date: July 13 2007 5:51am
Subject: Re: Connection::connect() interface is changing
List-Archive: http://lists.mysql.com/plusplus/6777
Message-Id: <469712CD.9060609@etr-usa.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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!