提交 bcd880ed authored 作者: Thomas Mueller's avatar Thomas Mueller

MVStoreTableEngine

上级 f45a31b0
...@@ -559,6 +559,14 @@ int test; ...@@ -559,6 +559,14 @@ int test;
} catch (SQLException e) { } catch (SQLException e) {
assertEquals(ErrorCode.DUPLICATE_KEY_1, e.getErrorCode()); assertEquals(ErrorCode.DUPLICATE_KEY_1, e.getErrorCode());
} }
stat.execute("delete from test");
stat.execute("insert into test(id, name) values(-1, 'Hello')");
rs = stat.executeQuery("select count(*) from test where id = -1");
rs.next();
assertEquals(1, rs.getInt(1));
rs = stat.executeQuery("select count(*) from test where name = 'Hello'");
rs.next();
assertEquals(1, rs.getInt(1));
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论