提交 1cf93815 authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 ccded726
...@@ -120,6 +120,7 @@ Areas that are not fully tested: ...@@ -120,6 +120,7 @@ Areas that are not fully tested:
<ul> <ul>
<li>Platforms other than Windows XP and the Sun JVM 1.4 and 1.5 <li>Platforms other than Windows XP and the Sun JVM 1.4 and 1.5
</li><li>The MVCC (multi version concurrency) mode </li><li>The MVCC (multi version concurrency) mode
</li><li>The persistent linear hash index
</li><li>Cluster mode, 2-Phase Commit, Savepoints </li><li>Cluster mode, 2-Phase Commit, Savepoints
</li><li>Multi-Threading and using multiple connections </li><li>Multi-Threading and using multiple connections
</li><li>24/7 operation and large databases (500 MB and up) </li><li>24/7 operation and large databases (500 MB and up)
......
...@@ -36,6 +36,9 @@ public abstract class RightOwner extends DbObjectBase { ...@@ -36,6 +36,9 @@ public abstract class RightOwner extends DbObjectBase {
} }
public boolean isRoleGranted(Role grantedRole) { public boolean isRoleGranted(Role grantedRole) {
if (grantedRole == this) {
return true;
}
if (grantedRoles != null) { if (grantedRoles != null) {
Iterator it = grantedRoles.keySet().iterator(); Iterator it = grantedRoles.keySet().iterator();
while (it.hasNext()) { while (it.hasNext()) {
......
...@@ -155,6 +155,8 @@ java org.h2.test.TestAll timer ...@@ -155,6 +155,8 @@ java org.h2.test.TestAll timer
/* /*
fix or disable the linear hash index
delete old ipowerb content delete old ipowerb content
link to new changelog and roadmap, remove pages from google groups link to new changelog and roadmap, remove pages from google groups
......
--- special grammar and test cases --------------------------------------------------------------------------------------------- --- special grammar and test cases ---------------------------------------------------------------------------------------------
CREATE ROLE X;
> ok
GRANT X TO X;
> exception
CREATE ROLE Y;
> ok
GRANT Y TO X;
> ok
DROP ROLE Y;
> ok
DROP ROLE X;
> ok
create table test as select * from table(id int=(1, 2, 3)); create table test as select * from table(id int=(1, 2, 3));
> ok > ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论