mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Fix up the docker tests
This commit is contained in:
parent
e71832f57a
commit
f669b1af9d
4 changed files with 81 additions and 3 deletions
|
|
@ -49,6 +49,39 @@
|
|||
OR dest.test_ts = EXCLUDED.test_ts
|
||||
</insert>
|
||||
</job>
|
||||
<job>
|
||||
<name>test upsert</name>
|
||||
<key>select -1 as key</key>
|
||||
<select>
|
||||
select
|
||||
id,
|
||||
test_int,
|
||||
test_text,
|
||||
test_ts
|
||||
from
|
||||
public.source where id > ?::bigint</select>
|
||||
<insert>
|
||||
insert into public.dest(
|
||||
id,
|
||||
test_int,
|
||||
test_text,
|
||||
test_ts
|
||||
)values(
|
||||
?::bigint,
|
||||
?::integer,
|
||||
?::text,
|
||||
?::timestamp with time zone
|
||||
)ON CONFLICT(id) DO UPDATE
|
||||
set
|
||||
test_int = EXCLUDED.test_int,
|
||||
test_text = EXCLUDED.test_text,
|
||||
test_ts = EXCLUDED.test_ts
|
||||
WHERE
|
||||
dest.test_int IS DISTINCT FROM EXCLUDED.test_int
|
||||
OR dest.test_text IS DISTINCT FROM EXCLUDED.test_text
|
||||
OR dest.test_ts IS DISTINCT FROM EXCLUDED.test_ts
|
||||
</insert>
|
||||
</job>
|
||||
<job>
|
||||
<name>denormalise</name>
|
||||
<key>select -1 as key</key>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue