We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27cb982 commit 85330c0Copy full SHA for 85330c0
sqlite_modern_cpp.h
@@ -96,15 +96,13 @@ namespace sqlite {
96
public:
97
friend class database;
98
~database_binder() {
99
+ /* Will be executed if no >>op is found */
100
if( _stmt ) {
- /* Wastes A LOT of time
101
int hresult;
102
- if( (hresult = sqlite3_step( _stmt )) != SQLITE_DONE ) {
103
- if( hresult == SQLITE_ROW )
104
- throw std::runtime_error( "not all rows readed" );
105
- throw std::runtime_error( sqlite3_errmsg( _db ) );
+ if( sqlite3_step( _stmt ) != SQLITE_DONE ) {
+ throw std::runtime_error( sqlite3_errmsg( _db ) );
106
}
107
- */
+
108
if( sqlite3_finalize( _stmt ) != SQLITE_OK )
109
throw std::runtime_error( sqlite3_errmsg( _db ) );
110
_stmt = nullptr;
0 commit comments