blob: 67d36e97f04424e419ee0327844f81202b87d3a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- ext/mysql_api/mysql.c.orig 2018-01-03 15:47:52 UTC
+++ ext/mysql_api/mysql.c
@@ -1317,7 +1317,7 @@ static VALUE stmt_bind_result(int argc,
}
else if (argv[i] == rb_cString)
s->result.bind[i].buffer_type = MYSQL_TYPE_STRING;
- else if (argv[i] == rb_cNumeric || argv[i] == rb_cInteger || argv[i] == rb_cFixnum)
+ else if (argv[i] == rb_cNumeric || argv[i] == rb_cInteger || argv[i] == rb_cInteger)
s->result.bind[i].buffer_type = MYSQL_TYPE_LONGLONG;
else if (argv[i] == rb_cFloat)
s->result.bind[i].buffer_type = MYSQL_TYPE_DOUBLE;
|