mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 14:22:58 +00:00
* chore: insert support string to numeric auto cast * test: add sqlness test * chore: remove log * test: fix sql test * style: fix clippy * test: test invalid number * feat: do not convert to default if unable to parse * chore: update comment * test: update sqlness test * test: update prepare test
22 lines
442 B
SQL
22 lines
442 B
SQL
-- SQLNESS PROTOCOL MYSQL
|
|
CREATE TABLE integers (
|
|
val INT,
|
|
ts TIMESTAMP,
|
|
TIME INDEX(ts)
|
|
);
|
|
|
|
-- SQLNESS PROTOCOL MYSQL
|
|
INSERT INTO integers VALUES (11, 1), (12, 2);
|
|
|
|
-- SQLNESS PROTOCOL MYSQL
|
|
INSERT INTO integers VALUES ('13', 3), ('14', 4);
|
|
|
|
-- SQLNESS PROTOCOL MYSQL
|
|
INSERT INTO integers VALUES ('15a', 5), ('16', 6);
|
|
|
|
-- SQLNESS PROTOCOL MYSQL
|
|
SELECT * FROM integers ORDER BY ts;
|
|
|
|
-- SQLNESS PROTOCOL MYSQL
|
|
DROP TABLE integers;
|