提交 2228df8c authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 ac41fbba
......@@ -1050,9 +1050,6 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
</li><li>Support materialized views (using triggers)
</li><li>Store dates in local timezone (portability of database files)
</li><li>Ability to resize the cache array when resizing the cache
</li><li>Index usage for WHERE NOT FLAG (flag is a boolean column)
</li><li>Automatic conversion from WHERE ID=1 AND ID=2 to WHERE FALSE
</li><li>Automatic conversion from WHERE X=Y AND Y=Z to X=Y AND Y=Z AND X=Z
</li><li>Automatic conversion from WHERE X>10 AND X>20 to X>20
</li></ul>
......
......@@ -157,6 +157,7 @@ public class CreateTable extends SchemaCommand {
insert.setTable(table);
insert.setQuery(asQuery);
insert.prepare();
int todoSetCreateAsBatchSize;
insert.update();
}
} catch(SQLException e) {
......
......@@ -103,7 +103,7 @@ public class LinkedIndex extends Index {
if(buff.length() > 0) {
buff.insert(0, " WHERE ");
}
buff.insert(0, "SELECT * FROM "+originalTable);
buff.insert(0, "SELECT * FROM "+originalTable + " T");
String sql = buff.toString();
try {
PreparedStatement prep = link.getPreparedStatement(sql);
......@@ -121,7 +121,7 @@ public class LinkedIndex extends Index {
v.set(prep, j+1);
j++;
}
}
}
ResultSet rs = prep.executeQuery();
return new LinkedCursor(table, rs, session);
} catch(SQLException e) {
......
......@@ -94,6 +94,18 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
/*
ability to switch off undo log of the session
(and automatically switch it off for create table as select)
drop table test;
create table test as select x, space(10000) d from system_range(1, 10000);
null?
drop table test;
create table test as select x, cast(space(5000) as varchar) d from system_range(1, 10000);
select top 10 * from test;
database is not closed when killing the process (but should? why not?)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论