diff --git a/sqllogictest/src/runner.rs b/sqllogictest/src/runner.rs index 67252ec..adbfc3d 100644 --- a/sqllogictest/src/runner.rs +++ b/sqllogictest/src/runner.rs @@ -1022,12 +1022,8 @@ impl> Runner { for (idx, file) in files.enumerate() { // for every slt file, we create a database against table conflict let file = file.unwrap(); - let db_name = file - .file_name() - .expect("not a valid filename") - .to_str() - .expect("not a UTF-8 filename"); - let db_name = db_name.replace([' ', '.', '-'], "_"); + let db_name = file.to_str().expect("not a UTF-8 filename"); + let db_name = db_name.replace([' ', '.', '-', '/'], "_"); self.conn .run_default(&format!("CREATE DATABASE {db_name};"))