moving requires to the .rb files
This commit is contained in:
parent
062b83062f
commit
0b36eae450
|
@ -754,9 +754,6 @@ static VALUE rb_raise_mysql2_error(MYSQL *client) {
|
|||
|
||||
/* Ruby Extension initializer */
|
||||
void Init_mysql2() {
|
||||
rb_require("date");
|
||||
rb_require("bigdecimal");
|
||||
|
||||
cBigDecimal = rb_const_get(rb_cObject, rb_intern("BigDecimal"));
|
||||
cDate = rb_const_get(rb_cObject, rb_intern("Date"));
|
||||
cDateTime = rb_const_get(rb_cObject, rb_intern("DateTime"));
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
# encoding: UTF-8
|
||||
require 'date'
|
||||
require 'bigdecimal'
|
||||
|
||||
require 'mysql2.so'
|
||||
|
||||
# = Mysql2
|
||||
|
|
Loading…
Reference in New Issue