mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-11-19 14:26:43 +00:00
Moving several struct variants out of Statement enum to allow for trait impls for specific sub-variants (#2057)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
This commit is contained in:
parent
e7d42f3d1a
commit
cc595cfd84
15 changed files with 1032 additions and 962 deletions
|
|
@ -778,14 +778,10 @@ fn parse_mssql_bin_literal() {
|
|||
fn parse_mssql_create_role() {
|
||||
let sql = "CREATE ROLE mssql AUTHORIZATION helena";
|
||||
match ms().verified_stmt(sql) {
|
||||
Statement::CreateRole {
|
||||
names,
|
||||
authorization_owner,
|
||||
..
|
||||
} => {
|
||||
assert_eq_vec(&["mssql"], &names);
|
||||
Statement::CreateRole(create_role) => {
|
||||
assert_eq_vec(&["mssql"], &create_role.names);
|
||||
assert_eq!(
|
||||
authorization_owner,
|
||||
create_role.authorization_owner,
|
||||
Some(ObjectName::from(vec![Ident {
|
||||
value: "helena".into(),
|
||||
quote_style: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue