提交 27429684 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add more _ROWID_ tests

上级 f407d179
......@@ -28,3 +28,19 @@ TABLE TEST;
DROP TABLE TEST;
> ok
CREATE TABLE TEST(ID INT);
> ok
-- TODO Do we need _ROWID_ support here?
INSERT INTO TEST(_ROWID_, ID) VALUES (2, 3);
> update count: 1
SELECT _ROWID_, ID FROM TEST;
> _ROWID_ ID
> ------- --
> 2 3
> rows: 1
DROP TABLE TEST;
> ok
......@@ -38,3 +38,28 @@ SELECT B FROM TEST;
DROP TABLE TEST;
> ok
CREATE TABLE TEST(ID INT) AS VALUES 100;
> ok
SELECT _ROWID_ FROM TEST;
>> 1
-- _ROWID_ modifications are ignored
UPDATE TEST SET _ROWID_ = 2 WHERE ID = 100;
> update count: 1
UPDATE TEST SET TEST._ROWID_ = 3 WHERE ID = 100;
> update count: 1
UPDATE TEST SET PUBLIC.TEST._ROWID_ = 4 WHERE ID = 100;
> update count: 1
UPDATE TEST SET SCRIPT.PUBLIC.TEST._ROWID_ = 5 WHERE ID = 100;
> update count: 1
SELECT _ROWID_ FROM TEST;
>> 1
DROP TABLE TEST;
> ok
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论