| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | November 19 2004 2:00pm |
| Subject: | Re: Proper use of MySQL++ objects | ||
| View as plain text | |||
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.
| Thread | ||
|---|---|---|
| • Proper use of MySQL++ objects | Verfranc Raganas | 19 Nov |
| • Re: Proper use of MySQL++ objects | Warren Young | 19 Nov |
| • Re: Proper use of MySQL++ objects | Verfranc Raganas | 21 Nov |
| • Re: Proper use of MySQL++ objects | Warren Young | 22 Nov |
| • Re: Proper use of MySQL++ objects | Verfranc Raganas | 26 Nov |
| • Re: Proper use of MySQL++ objects | Warren Young | 29 Nov |
