|
|
Choosing A Webhost: |
Re: Statement.getResultSet() to return a reference instead of a pointer?: msg#00021db.carob.general
Zsolt Simon <zsolt.simon-NAAfj4rwCWC8rjiVs5Nzzw@xxxxxxxxxxxxxxxx> writes: > On Thu, 2006-02-23 at 17:15 +0100, Marc Herbert wrote: >> * >> * @return pointer to the current result set; null if there are no more >> */ >> - DriverResultSet* getResultSet() const { return lastResultPtr; } >> + DriverResultSet& getResultSet() const { return *lastResultPtr; } > > Just one question ... what will happen with getResultSet() when > lastResultPtr is null? Good question :-) Could we use a different semantic to flag the end of the list? This one is very Java/JDBC oriented, not C++. I find it's a pity to use pointers to mimic null java references. On the other hand iterators - a more C++ oriented solution - are probably closer to the current code.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Statement.getResultSet() to return a reference instead of a pointer?, Zsolt Simon |
|---|---|
| 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?, Zsolt Simon |
| 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.
|