|
|
Choosing A Webhost: |
Re: Re: Statement.getResultSet() to return a reference instead of a pointer: msg#00023db.carob.general
On Fri, 2006-02-24 at 10:44 +0100, Marc Herbert wrote: > >> Just one question ... what will happen with getResultSet() when > >> lastResultPtr is null? > > Also I hope, you took into consideration that this way you will have to write a copy constructor for DriverResultSet which will duplicate the pointers correctly in that class. With the default copyconstructor will segfault. Just a simple example: { DriverResultSet drs = xy.getResultSet(); <-- copy constructor } //drs will be destroyed at this point => destructor will be called, pointers like data and fields will be destructed. a call again to the same xy.getResultSet() later in the code will lead to segfault if the DriverResultSet copy constructor is not implemented. Also duplicating large DriverResultSet takes a long time ....
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Statement.getResultSet() to return a reference instead of a pointer?, Marc Herbert |
|---|---|
| Next by Date: | Re: Statement.getResultSet() to return a reference instead of a pointer?, Marc Herbert |
| Previous by Thread: | Re: Statement.getResultSet() to return a reference instead of a pointer?, Marc Herbert |
| Next by Thread: | Re: Statement.getResultSet() to return a reference instead of a pointer?, Marc Herbert |
| 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.
|