用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.3 KiB

--source include/force_myisam_default.inc
--source include/have_myisam.inc
--source include/have_udf.inc
#
# To run this test, "sql/udf_example.cc" need to be compiled into
# udf_example.so and LD_LIBRARY_PATH should be setup to point out where
# the library are. The regular CMake build system takes care of this
# automatically.
#
--echo #
--echo # WL8980 - Move udf metatable table from MyISAM to InnoDB.
--echo #
SET autocommit= 0;
SET innodb_lock_wait_timeout= 1;
# Create an auxiliary connection.
--echo
--echo # Connection: con1
--connect (con1, localhost, root,,)
let $con1_id= `SELECT CONNECTION_ID()`;
# Test Plan:
# A. Check that UDF statements are not vulnerable to the lock-wait-timeout.
# B. Check the implicit transactional nature of UDF DDL.
# C. Check it's possible to change the UDF meta table storage engine via
# ALTER TABLE.
--echo
--echo ######################################################################
--echo # C. Check that it is possible to ALTER storage engine for
--echo # mysql.func to MyISAM.
--echo # This is necessary for mysql_system_tables_fix_for_downgrade.sql
--echo # to work.
--echo ######################################################################
ALTER TABLE mysql.func ENGINE = MYISAM;
SELECT * FROM mysql.func;
ALTER TABLE mysql.func ENGINE = INNODB;
disconnect con1;