File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
#include <mysql2_ext.h>
2
2
3
- #include <stdint.h>
4
-
5
- #ifdef HAVE_RUBY_ENCODING_H
6
3
#include "mysql_enc_to_ruby.h"
7
4
5
+ #ifdef HAVE_RUBY_ENCODING_H
8
6
static rb_encoding * binaryEncoding ;
9
7
#endif
10
8
@@ -764,7 +762,7 @@ static VALUE rb_mysql_result_fetch_fields(VALUE self) {
764
762
wrapper -> fields = rb_ary_new2 (wrapper -> numberOfFields );
765
763
}
766
764
767
- if ((unsigned )RARRAY_LEN (wrapper -> fields ) != wrapper -> numberOfFields ) {
765
+ if ((my_ulonglong )RARRAY_LEN (wrapper -> fields ) != wrapper -> numberOfFields ) {
768
766
for (i = 0 ; i < wrapper -> numberOfFields ; i ++ ) {
769
767
rb_mysql_result_fetch_field (self , i , symbolizeKeys );
770
768
}
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ typedef struct {
10
10
VALUE client ;
11
11
VALUE encoding ;
12
12
VALUE statement ;
13
- unsigned int numberOfFields ;
14
- unsigned long numberOfRows ;
13
+ my_ulonglong numberOfFields ;
14
+ my_ulonglong numberOfRows ;
15
15
unsigned long lastRowProcessed ;
16
16
char is_streaming ;
17
17
char streamingComplete ;
You can’t perform that action at this time.
0 commit comments