@@ -427,7 +427,7 @@ static VALUE rb_mysql_result_fetch_row_stmt(VALUE self, MYSQL_FIELD * fields, co
427427 break ;
428428 case MYSQL_TYPE_TIME : // MYSQL_TIME
429429 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 ));
431431 if (!NIL_P (args -> app_timezone )) {
432432 if (args -> app_timezone == intern_local ) {
433433 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
458458 }
459459 }
460460 } 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 ));
462462 if (!NIL_P (args -> app_timezone )) {
463463 if (args -> app_timezone == intern_local ) {
464464 val = rb_funcall (val , intern_localtime , 0 );
0 commit comments