mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +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:
@@ -49,7 +49,7 @@ namespace Poco {
|
||||
namespace Data {
|
||||
|
||||
|
||||
Statement::Statement(StatementImpl* pImpl):
|
||||
Statement::Statement(StatementImpl::Ptr pImpl):
|
||||
_pImpl(pImpl),
|
||||
_async(false)
|
||||
{
|
||||
@@ -207,7 +207,7 @@ Statement& Statement::operator , (Manipulator manip)
|
||||
}
|
||||
|
||||
|
||||
Statement& Statement::addBind(AbstractBinding* pBind, bool duplicate)
|
||||
Statement& Statement::addBind(AbstractBinding::Ptr pBind)
|
||||
{
|
||||
if (pBind->isBulk())
|
||||
{
|
||||
@@ -221,13 +221,12 @@ Statement& Statement::addBind(AbstractBinding* pBind, bool duplicate)
|
||||
}
|
||||
else _pImpl->forbidBulk();
|
||||
|
||||
if (duplicate) pBind->duplicate();
|
||||
_pImpl->addBind(pBind);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Statement& Statement::addExtract(AbstractExtraction* pExtract, bool duplicate)
|
||||
Statement& Statement::addExtract(AbstractExtraction::Ptr pExtract)
|
||||
{
|
||||
if (pExtract->isBulk())
|
||||
{
|
||||
@@ -244,7 +243,6 @@ Statement& Statement::addExtract(AbstractExtraction* pExtract, bool duplicate)
|
||||
}
|
||||
else _pImpl->forbidBulk();
|
||||
|
||||
if (duplicate) pExtract->duplicate();
|
||||
_pImpl->addExtract(pExtract);
|
||||
return *this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user