+1 for ref:
- (seen in the jdbc spec) a resultset is never null
- to check end of list => if (getMoreResults() == false && getUpdateCount = -1)

Marc Herbert a écrit :
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?
    

Actually it seems this method is not needed to detect the end of the
list, since there is the (recommended in JDBC) getMoreResults() method
to do that, which you have to use anyway when walking the ResultSet
list.

So could we apply this patch?




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

  

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

Reply via email to