Skip to content

Commit

Permalink
add a testcase: comment and on_conflict clause
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonadern committed Sep 3, 2024
1 parent ad7e931 commit 0707b87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crates/uroborosql-fmt/testfiles/dst/insert/insert_select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,20 @@ from
where
id = 1 -- trailing comment
;
insert
into
tbl
(
id
)
select
id as id
from
tbl2
where
id = 1 -- trailing comment
on
conflict
do
nothing
;
4 changes: 4 additions & 0 deletions crates/uroborosql-fmt/testfiles/src/insert/insert_select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ insert into tbl (id)
select id from tbl2 where id = 1 -- trailing comment
;

insert into tbl (id)
select id from tbl2 where id = 1 -- trailing comment
on conflict do nothing
;

0 comments on commit 0707b87

Please sign in to comment.