mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-21 06:37:42 +01:00
fix(MySQL::Extractor): MySQL Extractor #2521
This commit is contained in:
parent
b93713087d
commit
391cb63c54
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user