polardbxengine/mysql-test/suite/xengine_sysschema/r/fn_format_path.result

33 lines
1.2 KiB
Plaintext

# restart: --datadir=CUSTOM_DATADIR --innodb_data_home_dir=MYSQLTEST_VARDIR/tmp/innodb --innodb_log_group_home_dir=MYSQLTEST_VARDIR/tmp/innodb_logs --innodb_undo_directory=MYSQLTEST_VARDIR/tmp/innodb_undo
SELECT sys.format_path(NULL);
sys.format_path(NULL)
NULL
SET @mypath := CONCAT(@@global.basedir, 'logs/binlog.000001');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@basedir/logs/binlog.000001
SET @mypath := CONCAT(@@global.datadir, 'foo/bar.foo');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@datadir/foo/bar.foo
SET @mypath := CONCAT(@@global.tmpdir, '/foo/bar.foo');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@tmpdir/foo/bar.foo
SET @mypath := CONCAT(@@global.innodb_data_home_dir, '/foo/bar.ibd');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@innodb_data_home_dir/foo/bar.ibd
SET @mypath := CONCAT(@@global.innodb_log_group_home_dir, '/ib_logfile0');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@innodb_log_group_home_dir/ib_logfile0
SET @mypath := CONCAT(@@global.innodb_undo_directory, '/undo0');
SELECT sys.format_path(@mypath);
sys.format_path(@mypath)
@@innodb_undo_directory/undo0
SELECT sys.format_path('/foo/bar/baz.foo');
sys.format_path('/foo/bar/baz.foo')
/foo/bar/baz.foo
# restart