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

This commit is contained in:
Luca Cappelletti 2025-10-10 16:08:20 +02:00 committed by GitHub
parent e7d42f3d1a
commit cc595cfd84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1032 additions and 962 deletions

View file

@ -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,