Skip to content

Commit 0a3858a

Browse files
committed
Merge pull request #398 from brianmario/rb_intern3-fix
Check for existence of rb_intern3 to try and get building on RBX again
2 parents 7940665 + 6d3c97d commit 0a3858a

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ rvm:
99
- rbx-19mode
1010
- rbx-20mode
1111
bundler_args: --without benchmarks
12-
matrix:
13-
allow_failures:
14-
- rvm: rbx-19mode
15-
- rvm: rbx-20mode
1612
script:
1713
- bundle exec rake
1814
- bundle exec rspec

ext/mysql2/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ def asplode lib
99
have_func('rb_thread_blocking_region')
1010
have_func('rb_wait_for_single_fd')
1111
have_func('rb_hash_dup')
12+
have_func('rb_intern3')
1213

1314
# borrowed from mysqlplus
1415
# http://github.com/oldmoe/mysqlplus/blob/master/ext/extconf.rb

ext/mysql2/result.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static VALUE rb_mysql_result_fetch_field(VALUE self, unsigned int idx, short int
129129
memcpy(buf, field->name, field->name_length);
130130
buf[field->name_length] = 0;
131131

132-
#ifdef HAVE_RUBY_ENCODING_H
132+
#ifdef HAVE_RB_INTERN3
133133
rb_field = rb_intern3(buf, field->name_length, rb_utf8_encoding());
134134
rb_field = ID2SYM(rb_field);
135135
#else

spec/mysql2/client_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def connect *args
293293
mark[:END] = Time.now
294294
mark.include?(:USR1).should be_true
295295
(mark[:USR1] - mark[:START]).should >= 1
296-
(mark[:USR1] - mark[:START]).should < 1.2
296+
(mark[:USR1] - mark[:START]).should < 1.3
297297
(mark[:END] - mark[:USR1]).should > 0.9
298298
(mark[:END] - mark[:START]).should >= 2
299299
(mark[:END] - mark[:START]).should < 2.2

0 commit comments

Comments
 (0)