mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
ea01fff505
Adding "--source include/have_udf.inc" and a few "--replace" commands.
97 lines
3.5 KiB
Text
97 lines
3.5 KiB
Text
--source include/have_udf.inc
|
|
--source include/have_log_bin.inc
|
|
|
|
--let $binlog_file=query_get_value(SHOW MASTER STATUS, File, 1)
|
|
--let $binlog_start=query_get_value(SHOW MASTER STATUS, Position, 1)
|
|
|
|
CREATE OR REPLACE DATABASE d1;
|
|
CREATE OR REPLACE DATABASE d1;
|
|
DROP DATABASE d1;
|
|
CREATE DATABASE IF NOT EXISTS d1;
|
|
CREATE DATABASE IF NOT EXISTS d1;
|
|
DROP DATABASE IF EXISTS d1;
|
|
DROP DATABASE IF EXISTS d1;
|
|
--echo "Runnig SHOW BINLOG EVENTS"
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VERSIONS/
|
|
--disable_query_log
|
|
--eval SHOW BINLOG EVENTS FROM $binlog_start;
|
|
--enable_query_log
|
|
RESET MASTER;
|
|
USE test;
|
|
|
|
|
|
CREATE OR REPLACE FUNCTION f1() RETURNS INT RETURN 1;
|
|
CREATE OR REPLACE FUNCTION f1() RETURNS INT RETURN 1;
|
|
DROP FUNCTION f1;
|
|
CREATE FUNCTION IF NOT EXISTS f1() RETURNS INT RETURN 1;
|
|
CREATE FUNCTION IF NOT EXISTS f1() RETURNS INT RETURN 1;
|
|
DROP FUNCTION IF EXISTS f1;
|
|
DROP FUNCTION IF EXISTS f1;
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
|
|
SHOW BINLOG EVENTS;
|
|
RESET MASTER;
|
|
|
|
|
|
CREATE TABLE t1 (a DATETIME);
|
|
CREATE OR REPLACE PROCEDURE p1() DELETE FROM t1;
|
|
CREATE OR REPLACE PROCEDURE p1() DELETE FROM t1;
|
|
DROP PROCEDURE p1;
|
|
CREATE PROCEDURE IF NOT EXISTS p1() DELETE FROM t1;
|
|
CREATE PROCEDURE IF NOT EXISTS p1() DELETE FROM t1;
|
|
DROP PROCEDURE IF EXISTS p1;
|
|
DROP PROCEDURE IF EXISTS p1;
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
|
|
SHOW BINLOG EVENTS;
|
|
DROP TABLE t1;
|
|
RESET MASTER;
|
|
|
|
|
|
--replace_result $UDF_EXAMPLE_SO UDF_EXAMPLE_LIB
|
|
eval CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME '$UDF_EXAMPLE_SO';
|
|
--replace_result $UDF_EXAMPLE_SO UDF_EXAMPLE_LIB
|
|
eval CREATE OR REPLACE FUNCTION metaphon RETURNS STRING SONAME '$UDF_EXAMPLE_SO';
|
|
DROP FUNCTION metaphon;
|
|
--replace_result $UDF_EXAMPLE_SO UDF_EXAMPLE_LIB
|
|
eval CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME '$UDF_EXAMPLE_SO';
|
|
--replace_result $UDF_EXAMPLE_SO UDF_EXAMPLE_LIB
|
|
eval CREATE FUNCTION IF NOT EXISTS metaphon RETURNS STRING SONAME '$UDF_EXAMPLE_SO';
|
|
DROP FUNCTION IF EXISTS metaphon;
|
|
DROP FUNCTION IF EXISTS metaphon;
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_result $UDF_EXAMPLE_SO UDM_EXAMPLE_LIB
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
|
|
SHOW BINLOG EVENTS;
|
|
RESET MASTER;
|
|
|
|
|
|
--echo #
|
|
--echo # CREATE SERVER is not logged
|
|
--echo #
|
|
CREATE OR REPLACE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
|
|
CREATE OR REPLACE SERVER s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
|
|
DROP SERVER s1;
|
|
CREATE SERVER IF NOT EXISTS s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
|
|
CREATE SERVER IF NOT EXISTS s1 FOREIGN DATA WRAPPER mysql OPTIONS (USER 'root', HOST 'localhost', DATABASE 'test');
|
|
DROP SERVER IF EXISTS s1;
|
|
DROP SERVER IF EXISTS s1;
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
|
|
SHOW BINLOG EVENTS;
|
|
RESET MASTER;
|
|
|
|
|
|
|
|
CREATE OR REPLACE VIEW v1 AS SELECT 1;
|
|
CREATE OR REPLACE VIEW v1 AS SELECT 1;
|
|
DROP VIEW v1;
|
|
CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
|
|
CREATE VIEW IF NOT EXISTS v1 AS SELECT 1;
|
|
DROP VIEW IF EXISTS v1;
|
|
DROP VIEW IF EXISTS v1;
|
|
--replace_column 1 # 2 # 5 #
|
|
--replace_regex /xid=[0-9]+/xid=XX/ /GTID [0-9]+-[0-9]+-[0-9]+/GTID #-#-#/ /Server.ver.*/VER/
|
|
SHOW BINLOG EVENTS;
|
|
RESET MASTER;
|