Fix build with Ruby 2.4+ and unbreak this port
MFH: 2018Q1
This commit is contained in:
parent
71b2fbffdb
commit
2d2e3e3e84
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458079
@ -12,8 +12,6 @@ COMMENT= MySQL API module for Ruby
|
||||
LICENSE= GPLv2 RUBY
|
||||
LICENSE_COMB= dual
|
||||
|
||||
BROKEN_RUBY24= yes
|
||||
|
||||
USE_RUBY= yes
|
||||
USES= gem mysql
|
||||
|
||||
|
11
databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
Normal file
11
databases/rubygem-mysql/files/patch-ext-mysql_api-mysql.c
Normal file
@ -0,0 +1,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;
|
Loading…
Reference in New Issue
Block a user