mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-23 00:07:59 +02:00
- use() takes reference now
- bind() for constants - Statement: allow for easier external binding supply
This commit is contained in:
@@ -363,6 +363,26 @@ void StatementImpl::addExtract(AbstractExtraction* pExtraction)
|
||||
}
|
||||
|
||||
|
||||
void StatementImpl::removeBind(const std::string& name)
|
||||
{
|
||||
bool found = false;
|
||||
|
||||
AbstractBindingVec::iterator it = _bindings.begin();
|
||||
for (; it != _bindings.end();)
|
||||
{
|
||||
if ((*it)->name() == name)
|
||||
{
|
||||
it = _bindings.erase(it);
|
||||
found = true;
|
||||
}
|
||||
else ++it;
|
||||
}
|
||||
|
||||
if (!found)
|
||||
throw NotFoundException(name);
|
||||
}
|
||||
|
||||
|
||||
void StatementImpl::formatSQL(std::vector<Any>& arguments)
|
||||
{
|
||||
std::string sql;
|
||||
|
Reference in New Issue
Block a user