mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 11:17:23 +00:00
Fix comments
This commit is contained in:
parent
7654a49b50
commit
1d977d1947
7 changed files with 191 additions and 201 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue