Skip to content

Commit bce53be

Browse files
committed
test(postgresql): make 02_roundript.sql test executable as a standalone test
1 parent 695719f commit bce53be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/postgresql/02_roundtrip.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
-- '2 db roundtrip test'
22

33
\echo '\nRunning two-db roundtrip test ...'
4+
\connect cloudsync_test_1
5+
SELECT encode(cloudsync_payload_encode(tbl, pk, col_name, col_value, col_version, db_version, site_id, cl, seq), 'hex') AS payload_hex
6+
FROM cloudsync_changes
7+
WHERE site_id = cloudsync_siteid() \gset
8+
49
DROP DATABASE IF EXISTS cloudsync_test_2;
510
CREATE DATABASE cloudsync_test_2;
611
\connect cloudsync_test_2

0 commit comments

Comments
 (0)