@@ -67,7 +67,7 @@ namespace
6767 MYSQL_RES* h;
6868 };
6969
70- size_t fieldSize (const MYSQL_FIELD& field)
70+ std:: size_t fieldSize (const MYSQL_FIELD& field)
7171 // / Convert field MySQL-type and field MySQL-length to actual field length
7272 {
7373 switch (field.type )
@@ -171,13 +171,13 @@ void ResultMetadata::init(MYSQL_STMT* stmt)
171171 return ;
172172 }
173173
174- size_t count = mysql_num_fields (h);
174+ std:: size_t count = mysql_num_fields (h);
175175 MYSQL_FIELD* fields = mysql_fetch_fields (h);
176176
177- size_t commonSize = 0 ;
177+ std:: size_t commonSize = 0 ;
178178 _columns.reserve (count);
179179
180- {for (size_t i = 0 ; i < count; i++)
180+ {for (std:: size_t i = 0 ; i < count; i++)
181181 {
182182 _columns.push_back (MetaColumn (
183183 i, // position
@@ -196,9 +196,9 @@ void ResultMetadata::init(MYSQL_STMT* stmt)
196196 _lengths.resize (count);
197197 _isNull.resize (count);
198198
199- size_t offset = 0 ;
199+ std:: size_t offset = 0 ;
200200
201- {for (size_t i = 0 ; i < count; i++)
201+ {for (std:: size_t i = 0 ; i < count; i++)
202202 {
203203 std::memset (&_row[i], 0 , sizeof (MYSQL_BIND));
204204
@@ -227,17 +227,17 @@ MYSQL_BIND* ResultMetadata::row()
227227 return &_row[0 ];
228228}
229229
230- size_t ResultMetadata::length (size_t pos) const
230+ std:: size_t ResultMetadata::length (std:: size_t pos) const
231231{
232232 return _lengths[pos];
233233}
234234
235- const unsigned char * ResultMetadata::rawData (size_t pos) const
235+ const unsigned char * ResultMetadata::rawData (std:: size_t pos) const
236236{
237237 return reinterpret_cast <const unsigned char *>(_row[pos].buffer );
238238}
239239
240- bool ResultMetadata::isNull (size_t pos) const
240+ bool ResultMetadata::isNull (std:: size_t pos) const
241241{
242242 return (_isNull[pos] != 0 );
243243}
0 commit comments