Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locations: Add support for Spans with exact location of AST nodes #1480

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading