diff --git a/Data/SQLite/src/SQLiteStatementImpl.cpp b/Data/SQLite/src/SQLiteStatementImpl.cpp index 58be0f3053..56b83b7acd 100644 --- a/Data/SQLite/src/SQLiteStatementImpl.cpp +++ b/Data/SQLite/src/SQLiteStatementImpl.cpp @@ -194,12 +194,12 @@ void SQLiteStatementImpl::bindImpl() if (_bindBegin != bindings().end()) { - _affectedRowCount = (*_bindBegin)->numOfRowsHandled(); + std::size_t boundRowCount = (*_bindBegin)->numOfRowsHandled(); Bindings::iterator oldBegin = _bindBegin; for (std::size_t pos = 1; _bindBegin != bindEnd && (*_bindBegin)->canBind(); ++_bindBegin) { - if (_affectedRowCount != (*_bindBegin)->numOfRowsHandled()) + if (boundRowCount != (*_bindBegin)->numOfRowsHandled()) throw BindingException("Size mismatch in Bindings. All Bindings MUST have the same size"); (*_bindBegin)->bind(pos); diff --git a/Data/src/AbstractBinder.cpp b/Data/src/AbstractBinder.cpp index 09358df007..de71ed4f29 100644 --- a/Data/src/AbstractBinder.cpp +++ b/Data/src/AbstractBinder.cpp @@ -458,6 +458,8 @@ void AbstractBinder::bind(std::size_t pos, const Any& val, Direction dir) bind(pos, RefAnyCast