mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-24 09:12:28 +02:00
improve BLOB handling, clean-up code
This commit is contained in:
@@ -329,15 +329,10 @@ private:
|
||||
{
|
||||
OutputParameter outputParameter = extractPreamble(pos);
|
||||
|
||||
if (isColumnNull(outputParameter))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (isColumnNull(outputParameter)) return false;
|
||||
|
||||
std::string tempString; // since the postgreSQL API in use is all about strings...
|
||||
|
||||
bool returnValue = extract(pos, tempString);
|
||||
|
||||
if (returnValue)
|
||||
{
|
||||
val = tempString;
|
||||
@@ -349,7 +344,7 @@ private:
|
||||
bool extractToDynamic(std::size_t pos, Dynamic::Var& val);
|
||||
|
||||
// Prevent VC8 warning "operator= could not be generated"
|
||||
Extractor& operator=(const Extractor&);
|
||||
Extractor& operator = (const Extractor&);
|
||||
|
||||
private:
|
||||
StatementExecutor& _statementExecutor;
|
||||
|
||||
@@ -279,7 +279,8 @@ inline const void* InputParameter::pInternalRepresentation() const
|
||||
return _pNonStringVersionRepresentation;
|
||||
|
||||
case Poco::Data::MetaColumn::FDT_UNKNOWN:
|
||||
default: return 0;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -89,8 +89,7 @@ public:
|
||||
|
||||
void connect(const char* aConnectionString);
|
||||
|
||||
void connect(const char* aHost, const char* aUser, const char* aPassword,
|
||||
const char* aDatabase, unsigned short aPort, unsigned int aConnectionTimeout);
|
||||
void connect(const char* aHost, const char* aUser, const char* aPassword, const char* aDatabase, unsigned short aPort, unsigned int aConnectionTimeout);
|
||||
|
||||
bool isConnected() const;
|
||||
/// is a connection established?
|
||||
|
||||
Reference in New Issue
Block a user