Files
greptimedb/tests/upgrade-compat/standalone/common/test_update.sql
WaterWhisperer 7fbcae1ef8 test: add upgrade compatibility tests (#6863)
test: add upgrade compatibility tests (#5188)

Signed-off-by: WaterWhisperer <waterwhisperer24@qq.com>
2025-09-02 21:16:00 +00:00

17 lines
370 B
SQL

-- SQLNESS ARG version=v0.9.5
CREATE TABLE update_test (
id INT,
val INT,
ts TIMESTAMP TIME INDEX,
PRIMARY KEY(id)
);
INSERT INTO update_test(id, val, ts) VALUES (1, 10, 1672531200000), (2, 20, 1672531201000);
-- SQLNESS ARG version=latest
UPDATE update_test SET val = 100 WHERE id = 1;
SELECT * FROM update_test ORDER BY id;
DROP TABLE update_test;