Zsolt Simon <[EMAIL PROTECTED]> 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.






_______________________________________________
Carob mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob

Reply via email to