- use() takes reference now

- bind() for constants
- Statement: allow for easier external binding supply
This commit is contained in:
Aleksandar Fabijanic
2008-01-16 03:32:10 +00:00
parent 48d0d9fef9
commit 41c775b41d
11 changed files with 508 additions and 95 deletions

View File

@@ -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;