Skip to content

Commit

Permalink
[SQL] Add some drop user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe authored and keith-hall committed Oct 31, 2023
1 parent ced5671 commit d837ea3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
10 changes: 10 additions & 0 deletions SQL/tests/syntax/syntax_test_cassandra.cql
Original file line number Diff line number Diff line change
Expand Up @@ -570,3 +570,13 @@ set x = 4
-- ^ meta.column-name
-- ^ keyword.operator
-- ^ meta.number.integer.decimal constant.numeric.value

DROP USER iffy ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^^^^^^^^^^ meta.statement.drop.sql
-- ^^^^ meta.other-name.sql

DROP USER IF EXISTS iffy ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^^^^^^^^^^^^^^^^^^^^ meta.statement.drop.sql
-- ^^^^ meta.other-name.sql
8 changes: 7 additions & 1 deletion SQL/tests/syntax/syntax_test_mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,13 @@ DROP USER bob@'%' ;
-- ^ punctuation.accessor.at.sql
-- ^ punctuation.terminator.statement.sql

DROP USER IF EXISTS bob, clara@localhost ;
DROP USER iffy ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^ meta.statement.drop.sql - meta.user
-- ^^^^^^^^^ meta.statement.drop.sql meta.user.sql
-- ^^^^ meta.username.sql

DROP USER IF EXISTS ify, clara@localhost ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^ meta.statement.drop.sql - meta.user
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.statement.drop.sql meta.user.sql
Expand Down
10 changes: 10 additions & 0 deletions SQL/tests/syntax/syntax_test_tsql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2287,6 +2287,16 @@ create user user_name_in_sql
-- ^ string.unquoted.tsql
-- ^ punctuation.terminator.statement.sql

DROP USER iffy ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^^^^^^^^^^ meta.statement.drop.sql
-- ^^^^ meta.other-name.sql

DROP USER IF EXISTS iffy ;
-- <- meta.statement.drop.sql keyword.other.ddl.sql
-- ^^^^^^^^^^^^^^^^^^^^^ meta.statement.drop.sql
-- ^^^^ meta.other-name.sql

DROP USER IF EXISTS "some-name-here";
-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.statement.drop.sql
-- ^ keyword.other.ddl.sql
Expand Down

0 comments on commit d837ea3

Please sign in to comment.