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 */
|
/* Ruby Extension initializer */
|
||||||
void Init_mysql2() {
|
void Init_mysql2() {
|
||||||
rb_require("date");
|
|
||||||
rb_require("bigdecimal");
|
|
||||||
|
|
||||||
cBigDecimal = rb_const_get(rb_cObject, rb_intern("BigDecimal"));
|
cBigDecimal = rb_const_get(rb_cObject, rb_intern("BigDecimal"));
|
||||||
cDate = rb_const_get(rb_cObject, rb_intern("Date"));
|
cDate = rb_const_get(rb_cObject, rb_intern("Date"));
|
||||||
cDateTime = rb_const_get(rb_cObject, rb_intern("DateTime"));
|
cDateTime = rb_const_get(rb_cObject, rb_intern("DateTime"));
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
# encoding: UTF-8
|
# encoding: UTF-8
|
||||||
|
require 'date'
|
||||||
|
require 'bigdecimal'
|
||||||
|
|
||||||
require 'mysql2.so'
|
require 'mysql2.so'
|
||||||
|
|
||||||
# = Mysql2
|
# = Mysql2
|
||||||
|
|
Loading…
Reference in New Issue