blob: 1205892b17b3aec3f444f993631c7afa1bf257c4 [file] [log] [blame]
# name: test/sql/cast/test_try_cast.test
# description: Test try cast
# group: [cast]
statement ok
PRAGMA enable_verification
# try cast is only implemented in the parser for now: we expect this to fail in the binding phase
statement error
SELECT TRY_CAST('hello' as INTEGER)
# not a reserved keyword
statement ok
CREATE TABLE try_cast(try_cast INTEGER);
statement ok
INSERT INTO try_cast VALUES (3);
query I
SELECT try_cast FROM try_cast;
----
3