29 lines
774 B
Text
29 lines
774 B
Text
# All SQL syntaxes that result in storing a u32.
|
|
|
|
statement ok
|
|
CREATE TABLE kanto.myschema.mytable (a INT UNSIGNED);
|
|
|
|
query I rowsort
|
|
SELECT column_name, data_type FROM myschema.information_schema.columns WHERE table_catalog='kanto';
|
|
----
|
|
a UInt32
|
|
|
|
statement ok
|
|
INSERT INTO kanto.myschema.mytable VALUES (1);
|
|
|
|
query I rowsort
|
|
SELECT * FROM kanto.myschema.mytable;
|
|
----
|
|
1
|
|
|
|
statement ok
|
|
INSERT INTO kanto.myschema.mytable VALUES (0);
|
|
|
|
statement ok
|
|
INSERT INTO kanto.myschema.mytable VALUES (4294967295);
|
|
|
|
statement error ^Arrow error: Cast error: Can't cast value -1 to type UInt32$
|
|
INSERT INTO kanto.myschema.mytable VALUES (-1);
|
|
|
|
statement error ^Arrow error: Cast error: Can't cast value 4294967296 to type UInt32$
|
|
INSERT INTO kanto.myschema.mytable VALUES (4294967295+1);
|