Fix for #641 MySQL - LONGBLOB problem on 64-bit systems

This commit is contained in:
Aleksandar Fabijanic 2014-12-16 19:24:33 -06:00
parent c85ad9f73d
commit 76573294e5

View File

@ -172,8 +172,7 @@ void ResultMetadata::init(MYSQL_STMT* stmt)
{for (std::size_t i = 0; i < count; i++)
{
std::size_t size = fieldSize(fields[i]);
std::size_t zero = 0;
if (size == ~zero) size = 0;
if (size == 0xFFFFFFFF) size = 0;
_columns.push_back(MetaColumn(
i, // position