|
|
Choosing A Webhost: |
CVS update of odbsequoia/src (connect.cpp): msg#00185db.carob.cvs
Date: Thursday, March 30, 2006 @ 23:36:33 Author: marc Path: /cvsroot/carob/odbsequoia/src Modified: connect.cpp (1.22 -> 1.23) Now setting *OutputHandle right away, so caller can make the difference between before vs after successful ctor and clean up. Using a reference instead of a pointer. -------------+ connect.cpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) Index: odbsequoia/src/connect.cpp diff -u odbsequoia/src/connect.cpp:1.22 odbsequoia/src/connect.cpp:1.23 --- odbsequoia/src/connect.cpp:1.22 Thu Mar 30 21:23:52 2006 +++ odbsequoia/src/connect.cpp Thu Mar 30 23:36:33 2006 @@ -179,10 +179,11 @@ { // FIXME: leaking here when the application forgets // to call SQLFreeHandle(STMT, newstmt) - ODBCStatement * newstmt = new ODBCStatement(*this); - newstmt->carob_stmt = carob_conn->createStatement(); - newstmt->state = S1; - *OutputHandle = newstmt; + ODBCStatement & newstmt = * new ODBCStatement(*this); + *OutputHandle = & newstmt; + + newstmt.carob_stmt = carob_conn->createStatement(); + newstmt.state = S1; return SQL_SUCCESS; }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS update of odbsequoia/src (env.cpp env.hpp explicit_type.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Previous by Thread: | CVS update of odbsequoia/src (connect.cpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of odbsequoia/src (connect.cpp inst.hpp), marc-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|