3 # Auxiliary file used by include/mysqlbinlog_start_stop_1.inc
5 # This prints a header, then runs mysqlbinlog once with given parameters.
9 # --let $extra_options= X
11 # --source include/mysqlbinlog-start-stop-2.inc
16 # Options that will be passed to mysqlbinlog but not printed to the test log
19 # Options that will be printed as a header in the test log.
22 # Pretty-print $option_text
23 --let $option_text= `SELECT SUBSTR(
REPLACE(
'$option',
'"',
''), 3)`
24 while (`SELECT LOCATE(
'=',
'$option_text')`)
26 --let $dash_pos= `SELECT LOCATE(
'--',
'$option_text')`
27 --let $option_text= `SELECT CONCAT(SUBSTR(
'$option_text', 1, LOCATE(
'=',
'$option_text') - 1), IF($dash_pos, CONCAT(
' ', SUBSTR(
'$option_text', $dash_pos + 2)),
''))`
30 --echo ---- $option_text ----
33 --replace_regex /SET @@SESSION.GTID_NEXT=
'.*'/SET @@SESSION.GTID_NEXT=
'GTID'/ /([0-9
A-Fa-f\-]{36})\:[0-9]+\-[0-9]+/UUID:#-#/
34 --exec $MYSQL_BINLOG --
short-
form $option $extra_options