mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
- added session "bulk" feature
- removed ODBC driver capability check
This commit is contained in:
@@ -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() &&
|
||||
|
||||
Reference in New Issue
Block a user