Skip to content

Commit 89a4fd6

Browse files
committed
fieldSize() returns std::size_t, which is not necessarily the same width as unsigned long.
1 parent e94075c commit 89a4fd6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Data/MySQL/src/ResultMetadata.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ void ResultMetadata::init(MYSQL_STMT* stmt)
189189

190190
{for (std::size_t i = 0; i < count; i++)
191191
{
192-
unsigned long size = fieldSize(fields[i]);
193-
unsigned long zero = 0;
192+
std::size_t size = fieldSize(fields[i]);
193+
std::size_t zero = 0;
194194
if (size == ~zero) size = 0;
195195

196196
_columns.push_back(MetaColumn(

0 commit comments

Comments
 (0)