fixed GH# 350: Memory leak in Data/ODBC with BLOB

This commit is contained in:
Guenter Obiltschnig 2013-12-18 19:34:03 +01:00
parent 54d56397b9
commit af51162455

View File

@ -1029,7 +1029,7 @@ inline void Preparator::prepare(std::size_t pos, const std::list<std::string>& v
inline void Preparator::prepare(std::size_t pos, const Poco::Data::BLOB&)
{
prepareVariableLen<Poco::Data::BLOB::ValueType>(pos, SQL_C_BINARY, maxDataSize(pos), DT_CHAR);
prepareVariableLen<Poco::Data::BLOB::ValueType>(pos, SQL_C_BINARY, maxDataSize(pos), DT_UCHAR);
}