Skip to content

Commit 96cea27

Browse files
nyaxtjustincase
authored andcommitted
ported row data type mapping test from result_spec.rb / test pass
1 parent 8a14154 commit 96cea27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/mysql2/result.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,9 @@ static VALUE rb_mysql_result_stmt_fetch_row(VALUE self, ID db_timezone, ID app_t
411411
ts = (MYSQL_TIME*)result_buffer->buffer;
412412
val = rb_funcall(rb_cTime,
413413
rb_intern("mktime"), 6,
414-
UINT2NUM(Qnil),
415-
UINT2NUM(Qnil),
416-
UINT2NUM(Qnil),
414+
opt_time_year,
415+
opt_time_month,
416+
opt_time_month,
417417
UINT2NUM(ts->hour),
418418
UINT2NUM(ts->minute),
419419
UINT2NUM(ts->second));

0 commit comments

Comments
 (0)