Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
96083e2b
提交
96083e2b
authored
12月 04, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
H2 Console: Columns are now listed for up to 500 tables.
上级
e3a45374
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
changelog.html
h2/src/docsrc/html/changelog.html
+3
-1
DbSchema.java
h2/src/main/org/h2/server/web/DbSchema.java
+11
-1
WebThread.java
h2/src/main/org/h2/server/web/WebThread.java
+1
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+0
-2
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
96083e2b
...
@@ -18,7 +18,9 @@ Change Log
...
@@ -18,7 +18,9 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
H2 Console: Cmd+Enter executes the current statement.
<ul><li>
Shell: line comments didn't work correctly.
</li><li>
H2 Console: Columns are now listed for up to 500 tables instead of 100.
</li><li>
H2 Console: Cmd+Enter executes the current statement.
</li><li>
JaQu: the maximum length of a column can now be defined using maxLength.
</li><li>
JaQu: the maximum length of a column can now be defined using maxLength.
For an example, see Product.java (maxLength(category, 255)).
For an example, see Product.java (maxLength(category, 255)).
</li><li>
R
&\#305;
dvan A
&\#287;
ar has completed the Turkish translation of the H2 Console. Thanks a lot!
</li><li>
R
&\#305;
dvan A
&\#287;
ar has completed the Turkish translation of the H2 Console. Thanks a lot!
...
...
h2/src/main/org/h2/server/web/DbSchema.java
浏览文件 @
96083e2b
...
@@ -17,6 +17,16 @@ import java.util.ArrayList;
...
@@ -17,6 +17,16 @@ import java.util.ArrayList;
*/
*/
public
class
DbSchema
{
public
class
DbSchema
{
/**
* Up to this many tables, the column type and indexes are listed.
*/
static
final
int
MAX_TABLES_LIST_INDEXES
=
100
;
/**
* Up to this many tables, the column names are listed.
*/
static
final
int
MAX_TABLES_LIST_COLUMNS
=
500
;
/**
/**
* The database content container.
* The database content container.
*/
*/
...
@@ -68,7 +78,7 @@ public class DbSchema {
...
@@ -68,7 +78,7 @@ public class DbSchema {
rs
.
close
();
rs
.
close
();
tables
=
new
DbTableOrView
[
list
.
size
()];
tables
=
new
DbTableOrView
[
list
.
size
()];
list
.
toArray
(
tables
);
list
.
toArray
(
tables
);
if
(
tables
.
length
<
100
)
{
if
(
tables
.
length
<
MAX_TABLES_LIST_COLUMNS
)
{
for
(
int
i
=
0
;
i
<
tables
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
tables
.
length
;
i
++)
{
DbTableOrView
tab
=
tables
[
i
];
DbTableOrView
tab
=
tables
[
i
];
tab
.
readColumns
(
meta
);
tab
.
readColumns
(
meta
);
...
...
h2/src/main/org/h2/server/web/WebThread.java
浏览文件 @
96083e2b
...
@@ -792,7 +792,7 @@ class WebThread extends Thread implements DatabaseEventListener {
...
@@ -792,7 +792,7 @@ class WebThread extends Thread implements DatabaseEventListener {
return
treeIndex
;
return
treeIndex
;
}
}
boolean
isOracle
=
schema
.
contents
.
isOracle
;
boolean
isOracle
=
schema
.
contents
.
isOracle
;
boolean
notManyTables
=
tables
.
length
<
100
;
boolean
notManyTables
=
tables
.
length
<
DbSchema
.
MAX_TABLES_LIST_INDEXES
;
for
(
int
i
=
0
;
i
<
tables
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
tables
.
length
;
i
++)
{
DbTableOrView
table
=
tables
[
i
];
DbTableOrView
table
=
tables
[
i
];
if
(
table
.
isView
)
{
if
(
table
.
isView
)
{
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
96083e2b
...
@@ -283,8 +283,6 @@ java org.h2.test.TestAll timer
...
@@ -283,8 +283,6 @@ java org.h2.test.TestAll timer
System
.
setProperty
(
"h2.check2"
,
"true"
);
System
.
setProperty
(
"h2.check2"
,
"true"
);
/*
/*
maybe make cmd+enter work for mac?
create_100_tables.sql (show columns in h2 console for h2 databases)
postgresql generate_series?
postgresql generate_series?
is in-memory scan index re-using ids?
is in-memory scan index re-using ids?
don't store default values (store a special value)
don't store default values (store a special value)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论