Skip to content

Commit

Permalink
feat(#757): Add Location/Spans in to the AST/parse layer
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeswenson authored and lustefaniak committed Oct 22, 2024
1 parent 8e0d26a commit fba2a14
Show file tree
Hide file tree
Showing 26 changed files with 3,196 additions and 2,141 deletions.
8 changes: 4 additions & 4 deletions src/ast/dcl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use serde::{Deserialize, Serialize};
use sqlparser_derive::{Visit, VisitMut};

use super::{Expr, Ident, Password};
use crate::ast::{display_separated, ObjectName};
use crate::ast::{display_separated, ObjectName, WithSpan};

/// An option in `ROLE` statement.
///
Expand Down Expand Up @@ -126,15 +126,15 @@ pub enum ResetConfig {
pub enum AlterRoleOperation {
/// Generic
RenameRole {
role_name: Ident,
role_name: WithSpan<Ident>,
},
/// MS SQL Server
/// <https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-role-transact-sql>
AddMember {
member_name: Ident,
member_name: WithSpan<Ident>,
},
DropMember {
member_name: Ident,
member_name: WithSpan<Ident>,
},
/// PostgreSQL
/// <https://www.postgresql.org/docs/current/sql-alterrole.html>
Expand Down
Loading

0 comments on commit fba2a14

Please sign in to comment.