fieldSize() returns std::size_t, which is not necessarily the same width as unsigned long.

This commit is contained in:
latitude37s
2013-12-19 17:05:50 +00:00
parent e94075c023
commit 89a4fd6dd6

View File

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