fix(MySQL::Extractor): MySQL Extractor #2521

This commit is contained in:
Alex Fabijanic 2022-06-23 11:23:11 +02:00
parent b93713087d
commit 391cb63c54

View File

@ -246,6 +246,10 @@ std::size_t ResultMetadata::length(std::size_t pos) const
const unsigned char* ResultMetadata::rawData(std::size_t pos) const
{
if ((_lengths[pos] == 0) && (_row[pos].buffer == nullptr))
return reinterpret_cast<const unsigned char*>("");
else
poco_check_ptr (_row[pos].buffer);
return reinterpret_cast<const unsigned char*>(_row[pos].buffer);
}