Debian Codegraph @

mysql-test/suite/sysschema/t/fn_format_path.test

raw
1 -- source include/not_embedded.inc
2 -- source include/not_windows.inc
3
4
5 # Passing NULL should return NULL
6 SELECT sys.format_path(NULL);
7 # Ensure datadir is recognized and stripped
8 SET @mypath := CONCAT(@@global.datadir, 'foo/bar.foo');
9
10 SELECT sys.format_path(@mypath);
11
12 # Ensure tmpdir is recognized and stripped
13 SET @mypath := CONCAT(@@global.tmpdir, '/foo/bar.foo');
14 SELECT sys.format_path(@mypath);
15
16 # Unrecognized paths should return the full path
17 SELECT sys.format_path('/foo/bar/baz.foo');