Skip to content

Commit

Permalink
modify revoke_user_on_table
Browse files Browse the repository at this point in the history
  • Loading branch information
tristaZero committed Jul 13, 2018
1 parent ace8e02 commit 16ab8e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sharding-core/src/test/resources/parser/revoke_user.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<table-token begin-position="25" original-literals="*" />
</tokens>
</parser-result>
<parser-result sql-case-id="revoke_user_on_table">
<parser-result sql-case-id="revoke_user_with_hostname">
<tables>
<table name="t_order" />
</tables>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<dcl-test-case sql-case-id="revoke_user_on_db">
<assertion init-sqls="CREATE USER 'user_dev'@'localhost'" clean-sqls="DROP USER 'user_dev'@'localhost'" />
</dcl-test-case>
<dcl-test-case sql-case-id="revoke_user_on_table">
<dcl-test-case sql-case-id="revoke_user_with_hostname">
<assertion init-sqls="CREATE USER 'user_dev'@'localhost'" clean-sqls="DROP USER 'user_dev'@'localhost'" />
</dcl-test-case>
<dcl-test-case sql-case-id="revoke_user_with_hostname">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<sql-case id="revoke_role" value="REVOKE role_dev from user_dev" db-types="Oracle,PostgreSQL,SQLServer,H2" />
<sql-case id="revoke_user_from" value="REVOKE connect, resource from user_dev" db-types="Oracle" />
<sql-case id="revoke_user_on_db" value="REVOKE select, insert ON *.* FROM 'user_dev'@'localhost'" db-types="MySQL" />
<sql-case id="revoke_user_on_table" value="REVOKE select, insert ON sharding_db.t_order FROM 'user_dev'@'localhost'" db-types="MySQL" />
<sql-case id="revoke_user_with_hostname" value="REVOKE select, insert ON sharding_db.t_order FROM 'user_dev'@'localhost'" db-types="MySQL" />
<sql-case id="revoke_user_with_hostname" value="REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'user_dev'@'localhost'" db-types="MySQL" />
</sql-cases>

0 comments on commit 16ab8e1

Please sign in to comment.