gh-664: role accepts bad syntax for create
A fix and a test case for gh-664 (bad syntax is accepted in schema.role.*, schema.user.*, etc). Check the second argument of role.create()/role.drop(), user.create()/user.drop(), func.create()/func.drop(). Implement if_exists option for user.drop(), role.drop(), func.drop(). Add a test case.
Showing
- src/box/lua/schema.lua 34 additions, 7 deletionssrc/box/lua/schema.lua
- test/box/access.result 18 additions, 0 deletionstest/box/access.result
- test/box/access.test.lua 8 additions, 0 deletionstest/box/access.test.lua
- test/box/role.result 17 additions, 0 deletionstest/box/role.result
- test/box/role.test.lua 5 additions, 0 deletionstest/box/role.test.lua
Loading
Please register or sign in to comment