Skip to content

Commit 39d25a8

Browse files
author
Venkatesh Duggirala
committed
Merge branch 'mysql-5.6' into mysql-5.7
2 parents 595c765 + 8b8334e commit 39d25a8

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

mysql-test/r/parser.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ ERROR 42000: Incorrect parameter count in the call to native function 'master_po
473473
select master_pos_wait(1);
474474
ERROR 42000: Incorrect parameter count in the call to native function 'master_pos_wait'
475475
select master_pos_wait('master-bin.999999', 4, -1);
476-
ERROR HY000: Incorrect arguments to MASTER_POS_WAIT.
477476
select rand(1, 2, 3);
478477
ERROR 42000: Incorrect parameter count in the call to native function 'rand'
479478
select round(1, 2, 3);

mysql-test/t/parser.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,8 +576,10 @@ select master_pos_wait();
576576
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
577577
select master_pos_wait(1);
578578

579-
--error ER_WRONG_ARGUMENTS
579+
--disable_result_log
580+
--error 0,ER_WRONG_ARGUMENTS
580581
select master_pos_wait('master-bin.999999', 4, -1);
582+
--enable_result_log
581583

582584
-- error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT
583585
select rand(1, 2, 3);

sql/rpl_gtid_state.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ bool Gtid_state::wait_for_gtid_set(THD *thd, Gtid_set* wait_for,
325325
DBUG_ASSERT(wait_for->get_sid_map() == global_sid_map);
326326

327327
if (timeout > 0)
328-
set_timespec_nsec(&abstime, timeout * 1000000000ULL);
328+
set_timespec_nsec(&abstime, (ulonglong) timeout * 1000000000ULL);
329329

330330
/*
331331
Algorithm:

sql/rpl_rli.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ int Relay_log_info::wait_for_pos(THD* thd, String* log_name,
735735

736736
DEBUG_SYNC(thd, "begin_master_pos_wait");
737737

738-
set_timespec_nsec(&abstime, timeout * 1000000000ULL);
738+
set_timespec_nsec(&abstime, (ulonglong)timeout * 1000000000ULL);
739739
mysql_mutex_lock(&data_lock);
740740
thd->ENTER_COND(&data_cond, &data_lock,
741741
&stage_waiting_for_the_slave_thread_to_advance_position,
@@ -956,7 +956,7 @@ int Relay_log_info::wait_for_gtid_set(THD* thd, const Gtid_set* wait_gtid_set,
956956

957957
DEBUG_SYNC(thd, "begin_wait_for_gtid_set");
958958

959-
set_timespec_nsec(&abstime, timeout * 1000000000ULL);
959+
set_timespec_nsec(&abstime, (ulonglong) timeout * 1000000000ULL);
960960

961961
mysql_mutex_lock(&data_lock);
962962
thd->ENTER_COND(&data_cond, &data_lock,

0 commit comments

Comments
 (0)