Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/sysschema/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 496 B image not shown  

Quelle  fn_format_path.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[88] ADA[77] VHDL[77]} [Methode: maximale Elemente, drei Dimensionen]

-- source include/not_embedded.inc
-- source include/not_windows.inc


# Passing NULL should return NULL
SELECT sys.format_path(NULL);
# Ensure datadir is recognized and stripped
SET @mypath := CONCAT(@@global.datadir, 'foo/bar.foo');

SELECT sys.format_path(@mypath);

# Ensure tmpdir is recognized and stripped
SET @mypath := CONCAT(@@global.tmpdir, '/foo/bar.foo');
SELECT sys.format_path(@mypath);

# Unrecognized paths should return the full path
SELECT sys.format_path('/foo/bar/baz.foo');

[Dauer der Verarbeitung: 0.5 Sekunden]