diff --git a/dbms/tests/queries/0_stateless/00938_basename.reference b/dbms/tests/queries/0_stateless/00938_basename.reference new file mode 100644 index 00000000000..37da7973757 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00938_basename.reference @@ -0,0 +1,5 @@ +bash + +bash +test_file +script.php diff --git a/dbms/tests/queries/0_stateless/00938_basename.sql b/dbms/tests/queries/0_stateless/00938_basename.sql new file mode 100644 index 00000000000..cea11e9a479 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00938_basename.sql @@ -0,0 +1,5 @@ +SELECT basename('/usr/bin/bash'); +SELECT basename('/usr/bin/bash/'); +SELECT basename('bash'); +SELECT basename('C:\\\\Users\\Documents\\test_file'); +SELECT basename(path('http://example.com/folder_1/folder_2/script.php'))