- added session "bulk" feature

- removed ODBC driver capability check
This commit is contained in:
Aleksandar Fabijanic
2007-12-17 00:20:04 +00:00
parent c26de87394
commit 1c4e777ab3
6 changed files with 67 additions and 85 deletions

View File

@@ -201,6 +201,9 @@ Statement& Statement::operator , (AbstractBinding* pBind)
{
if (pBind->isBulk())
{
if (!_pImpl->isBulkSupported())
throw InvalidAccessException("Bulk not supported by this session.");
if(_pImpl->bulkBindingAllowed())
_pImpl->setBulkBinding();
else
@@ -217,6 +220,9 @@ Statement& Statement::operator , (AbstractExtraction* pExtract)
{
if (pExtract->isBulk())
{
if (!_pImpl->isBulkSupported())
throw InvalidAccessException("Bulk not supported by this session.");
if(_pImpl->bulkExtractionAllowed())
{
Bulk b(pExtract->getLimit());
@@ -255,6 +261,9 @@ Statement& Statement::operator , (const Range& extrRange)
Statement& Statement::operator , (const Bulk& bulk)
{
if (!_pImpl->isBulkSupported())
throw InvalidAccessException("Bulk not supported by this session.");
if (0 == _pImpl->extractions().size() &&
0 == _pImpl->bindings().size() &&
_pImpl->bulkExtractionAllowed() &&