@@ -427,7 +427,7 @@ static VALUE rb_mysql_result_fetch_row_stmt(VALUE self, MYSQL_FIELD * fields, co
427
427
break ;
428
428
case MYSQL_TYPE_TIME : // MYSQL_TIME
429
429
ts = (MYSQL_TIME * )result_buffer -> buffer ;
430
- val = rb_funcall (rb_cTime , args -> db_timezone , 6 , opt_time_year , opt_time_month , opt_time_month , UINT2NUM (ts -> hour ), UINT2NUM (ts -> minute ), UINT2NUM (ts -> second ));
430
+ val = rb_funcall (rb_cTime , args -> db_timezone , 7 , opt_time_year , opt_time_month , opt_time_month , UINT2NUM (ts -> hour ), UINT2NUM (ts -> minute ), UINT2NUM (ts -> second ), ULONG2NUM ( ts -> second_part ));
431
431
if (!NIL_P (args -> app_timezone )) {
432
432
if (args -> app_timezone == intern_local ) {
433
433
val = rb_funcall (val , intern_localtime , 0 );
@@ -458,7 +458,7 @@ static VALUE rb_mysql_result_fetch_row_stmt(VALUE self, MYSQL_FIELD * fields, co
458
458
}
459
459
}
460
460
} else {
461
- val = rb_funcall (rb_cTime , args -> db_timezone , 6 , UINT2NUM (ts -> year ), UINT2NUM (ts -> month ), UINT2NUM (ts -> day ), UINT2NUM (ts -> hour ), UINT2NUM (ts -> minute ), UINT2NUM (ts -> second ));
461
+ val = rb_funcall (rb_cTime , args -> db_timezone , 7 , UINT2NUM (ts -> year ), UINT2NUM (ts -> month ), UINT2NUM (ts -> day ), UINT2NUM (ts -> hour ), UINT2NUM (ts -> minute ), UINT2NUM (ts -> second ), ULONG2NUM ( ts -> second_part ));
462
462
if (!NIL_P (args -> app_timezone )) {
463
463
if (args -> app_timezone == intern_local ) {
464
464
val = rb_funcall (val , intern_localtime , 0 );
0 commit comments