From 258fa10334f49d4f072e7fa44b49d9929b8df1c0 Mon Sep 17 00:00:00 2001 From: tanzaku Date: Wed, 11 Oct 2023 15:27:57 +0900 Subject: [PATCH] Update version of tree-sitter-sql (#20) --- Cargo.lock | 2 +- crates/uroborosql-fmt/testfiles/dst/select/null_type_cast.sql | 3 +++ crates/uroborosql-fmt/testfiles/src/select/null_type_cast.sql | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 crates/uroborosql-fmt/testfiles/dst/select/null_type_cast.sql create mode 100644 crates/uroborosql-fmt/testfiles/src/select/null_type_cast.sql diff --git a/Cargo.lock b/Cargo.lock index 607c09e..9037bac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,7 +324,7 @@ dependencies = [ [[package]] name = "tree-sitter-sql" version = "0.0.2" -source = "git+https://github.com/future-architect/tree-sitter-sql#14516f801d050599317295d3610cdc48f74749c1" +source = "git+https://github.com/future-architect/tree-sitter-sql#8e0ba268920ced1de29727533aeab6c22286e773" dependencies = [ "cc", "tree-sitter", diff --git a/crates/uroborosql-fmt/testfiles/dst/select/null_type_cast.sql b/crates/uroborosql-fmt/testfiles/dst/select/null_type_cast.sql new file mode 100644 index 0000000..1ee09e1 --- /dev/null +++ b/crates/uroborosql-fmt/testfiles/dst/select/null_type_cast.sql @@ -0,0 +1,3 @@ +select /* _SQL_ID_ */ + cast(null as text) as "test" +, cast('Y' as text) diff --git a/crates/uroborosql-fmt/testfiles/src/select/null_type_cast.sql b/crates/uroborosql-fmt/testfiles/src/select/null_type_cast.sql new file mode 100644 index 0000000..8bc14ce --- /dev/null +++ b/crates/uroborosql-fmt/testfiles/src/select/null_type_cast.sql @@ -0,0 +1,3 @@ +select /* _SQL_ID_ */ + null::text AS "test" +, 'Y'::text \ No newline at end of file