mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-14 23:07:56 +02:00
fieldSize() returns std::size_t, which is not necessarily the same width as unsigned long.
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user