Skip to content

Commit

Permalink
Use '1' and '0' instead of 't' and 'f' on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler Taveira committed May 10, 2017
1 parent 820c1ff commit d2d5009
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions expected/cmdline.out
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ ERROR: option "nosuchopt" = "42" is unknown
-- By default don't write in chunks
CREATE TABLE x ();
DROP TABLE x;
SELECT data FROM pg_logical_slot_peek_changes('regression_slot', NULL, NULL, 'include-xids', 'f');
SELECT data FROM pg_logical_slot_peek_changes('regression_slot', NULL, NULL, 'include-xids', '0');
data
---------------
{"change":[]}
{"change":[]}
(2 rows)

SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', 'f', 'write-in-chunks', 't');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0', 'write-in-chunks', '1');
data
-------------
{"change":[
Expand Down
4 changes: 2 additions & 2 deletions sql/cmdline.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'nos
-- By default don't write in chunks
CREATE TABLE x ();
DROP TABLE x;
SELECT data FROM pg_logical_slot_peek_changes('regression_slot', NULL, NULL, 'include-xids', 'f');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', 'f', 'write-in-chunks', 't');
SELECT data FROM pg_logical_slot_peek_changes('regression_slot', NULL, NULL, 'include-xids', '0');
SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0', 'write-in-chunks', '1');

-- By default don't write xids
CREATE TABLE gimmexid (id integer PRIMARY KEY);
Expand Down

0 comments on commit d2d5009

Please sign in to comment.