mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 02:53:10 +01:00
data housekeeping
- removed naked pointers from Data interfaces - fixed GH #82: name conflict in Data::Keywords::bind - fixed GH #157: MySQL: cannot bind to 'long' data type on Windows/Visual C++ - fixed GH #158: MySQL: MYSQL_BIND 'is_unsigned' member is not set
This commit is contained in:
@@ -44,7 +44,8 @@ namespace MySQL {
|
||||
MySQLStatementImpl::MySQLStatementImpl(SessionImpl& h) :
|
||||
Poco::Data::StatementImpl(h),
|
||||
_stmt(h.handle()),
|
||||
_extractor(_stmt, _metadata),
|
||||
_pBinder(new Binder),
|
||||
_pExtractor(new Extractor(_stmt, _metadata)),
|
||||
_hasNext(NEXT_DONTKNOW)
|
||||
{
|
||||
}
|
||||
@@ -160,21 +161,21 @@ void MySQLStatementImpl::bindImpl()
|
||||
pos += (*it)->numOfColumnsHandled();
|
||||
}
|
||||
|
||||
_stmt.bindParams(_binder.getBindArray(), _binder.size());
|
||||
_stmt.bindParams(_pBinder->getBindArray(), _pBinder->size());
|
||||
_stmt.execute();
|
||||
_hasNext = NEXT_DONTKNOW;
|
||||
}
|
||||
|
||||
|
||||
AbstractExtractor& MySQLStatementImpl::extractor()
|
||||
Poco::Data::AbstractExtractor::Ptr MySQLStatementImpl::extractor()
|
||||
{
|
||||
return _extractor;
|
||||
return _pExtractor;
|
||||
}
|
||||
|
||||
|
||||
AbstractBinder& MySQLStatementImpl::binder()
|
||||
Poco::Data::AbstractBinder::Ptr MySQLStatementImpl::binder()
|
||||
{
|
||||
return _binder;
|
||||
return _pBinder;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user