1
Fork 0
kantodb/testdata/sql/update_where_with_rowid.slt

25 lines
603 B
Text

statement ok
CREATE TABLE kanto.myschema.mytable (a BIGINT NOT NULL, b BIGINT);
statement ok
INSERT INTO kanto.myschema.mytable (a, b) VALUES (42, 7), (13, 34);
#statement ok
statement error ^External error: unimplemented/i61jpodrazscs: cannot update row_id tables yet$
UPDATE kanto.myschema.mytable SET b=8 WHERE a=42;
#query II
#SELECT * FROM kanto.myschema.mytable ORDER BY a;
#----
#13 34
#42 8
#
## Intentional no-change update, for test coverage.
#statement ok
#UPDATE kanto.myschema.mytable SET b=34 WHERE a=13;
#
#query II
#SELECT * FROM kanto.myschema.mytable ORDER BY a;
#----
#13 34
#42 8