polardbxengine/mysql-test/suite/xengine_main/t/function_defaults.test

42 lines
1.1 KiB
Plaintext

# Test needs myisam for some myisam specific testcases
--source include/have_myisam.inc
--echo #
--echo # Test of function defaults for any server.
--echo # We run the same tests with different settings for better coverage.
--echo #
--echo #
--echo # Function defaults run 1. No microsecond precision. MyISAM.
--echo #
set default_storage_engine=myisam;
let $current_timestamp=CURRENT_TIMESTAMP;
let $now=NOW();
let $timestamp=TIMESTAMP;
let $datetime=DATETIME;
source 'include/function_defaults.inc';
--echo #
--echo # Function defaults run 2. Six digits scale on seconds
--echo # precision. InnoDB.
--echo #
set default_storage_engine=innodb;
let $current_timestamp=CURRENT_TIMESTAMP(6);
let $now=NOW(6);
let $timestamp=TIMESTAMP(6);
let $datetime=DATETIME(6);
source 'include/function_defaults.inc';
--echo #
--echo # Function defaults run 2. Six digits scale on seconds
--echo # precision. XENGINE.
--echo #
set default_storage_engine=XENGINE;
let $current_timestamp=CURRENT_TIMESTAMP(6);
let $now=NOW(6);
let $timestamp=TIMESTAMP(6);
let $datetime=DATETIME(6);
source 'include/function_defaults.inc';
--source suite/xengine/include/check_xengine_log_error.inc