From: Warren Young Date: November 19 2004 2:00pm Subject: Re: Proper use of MySQL++ objects List-Archive: http://lists.mysql.com/plusplus/3692 Message-Id: <419DFC7D.2060304@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Verfranc Raganas wrote: > Which is safer : > > 1. mysqlpp::Connection con(mysqlpp::use_exceptions); > > 2. Connection* con=0; #2 doesn't give you working code. You have to assign a new'd Connection object to con in order to do anything with it. Once you've done that, neither is inherently safer than the other, if your code doesn't have bugs. > I encountered problems in using the #2 statement. Then your code at least one bug.