mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-30 06:54:07 +01:00
merge pg binary extraction support
This commit is contained in:
@@ -72,8 +72,9 @@ namespace Data {
|
||||
namespace PostgreSQL {
|
||||
|
||||
|
||||
StatementExecutor::StatementExecutor(SessionHandle& sessionHandle):
|
||||
StatementExecutor::StatementExecutor(SessionHandle& sessionHandle, bool binaryExtraction):
|
||||
_sessionHandle(sessionHandle),
|
||||
_binaryExtraction(binaryExtraction),
|
||||
_state(STMT_INITED),
|
||||
_pResultHandle(0),
|
||||
_countPlaceholdersInSQLStatement(0),
|
||||
@@ -248,11 +249,12 @@ void StatementExecutor::execute()
|
||||
{
|
||||
Poco::FastMutex::ScopedLock mutexLocker(_sessionHandle.mutex());
|
||||
|
||||
ptrPGResult = PQexecPrepared (_sessionHandle,
|
||||
ptrPGResult = PQexecPrepared(_sessionHandle,
|
||||
_preparedStatementName.c_str(), (int)_countPlaceholdersInSQLStatement,
|
||||
_inputParameterVector.size() != 0 ? &pParameterVector[ 0 ] : 0,
|
||||
_inputParameterVector.size() != 0 ? ¶meterLengthVector[ 0 ] : 0,
|
||||
_inputParameterVector.size() != 0 ? ¶meterFormatVector[ 0 ] : 0, 0);
|
||||
_inputParameterVector.size() != 0 ? ¶meterFormatVector[ 0 ] : 0,
|
||||
_binaryExtraction ? 1 : 0);
|
||||
}
|
||||
|
||||
// Don't setup to auto clear the result (ptrPGResult). It is required to retrieve the results later.
|
||||
|
||||
Reference in New Issue
Block a user