Skip to content

Commit ffc88fd

Browse files
committed
comments
1 parent c7318b6 commit ffc88fd

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Parsers/Access/ParserCreateUserQuery.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,9 @@ bool ParserCreateUserQuery::parseImpl(Pos & pos, ASTPtr & node, Expected & expec
657657
else if (alter)
658658
names->concatParts();
659659

660-
bool alter_command_with_no_changes = alter && pos_after_parsing_names == pos;
660+
bool alter_query_with_no_changes = alter && pos_after_parsing_names == pos;
661661

662-
if (alter_command_with_no_changes)
662+
if (alter_query_with_no_changes)
663663
{
664664
return false;
665665
}

tests/queries/0_stateless/03254_test_alter_user_no_changes.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
create user u_03254_alter_user;
44
alter user u_03254_alter_user; -- { clientError SYNTAX_ERROR }
5+
drop user u_03254_alter_user;

0 commit comments

Comments
 (0)