Fix comments

This commit is contained in:
osipovartem 2025-07-15 13:57:28 +03:00
parent 7654a49b50
commit 1d977d1947
7 changed files with 191 additions and 201 deletions

View file

@ -7898,12 +7898,13 @@ fn parse_exists_subquery() {
#[test]
fn parse_create_database() {
let sql = "CREATE DATABASE mydb";
match all_dialects_except(|d| d.is::<SnowflakeDialect>()).verified_stmt(sql) {
match verified_stmt(sql) {
Statement::CreateDatabase {
db_name,
if_not_exists,
location,
managed_location,
..
} => {
assert_eq!("mydb", db_name.to_string());
assert!(!if_not_exists);
@ -7917,12 +7918,13 @@ fn parse_create_database() {
#[test]
fn parse_create_database_ine() {
let sql = "CREATE DATABASE IF NOT EXISTS mydb";
match all_dialects_except(|d| d.is::<SnowflakeDialect>()).verified_stmt(sql) {
match verified_stmt(sql) {
Statement::CreateDatabase {
db_name,
if_not_exists,
location,
managed_location,
..
} => {
assert_eq!("mydb", db_name.to_string());
assert!(if_not_exists);