Menu

#27 StatementImpl::Columns() should never throw

open
nobody
None
5
2012-10-17
2010-11-13
No

StatementImpl::Columns() should simply return 0 if mOutRow isn't assigned. There is nothing wrong with querying the number of rows from any prepared statement.

Discussion

  • Michael Hieke

    Michael Hieke - 2010-11-13

    The same applies to StatementImpl::Parameters(). There is also some inconsistency in the getters, some test whether the statement has been prepared, some don't.

     
  • Olivier Mascia

    Olivier Mascia - 2010-11-16

    Agreed.

     

Log in to post a comment.

MongoDB Logo MongoDB