Skip to content

Commit 58b063d

Browse files
author
Timon Karnezos
committed
Added double-quotes around binary keyword to preserve compatibility with PG 9.1 and 9.2.
1 parent 43cf769 commit 58b063d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

regress/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ all: $(OUT)
7272

7373
clean:
7474
rm -f $(OUT)
75+
rm -f binary.dat
7576

7677
# If a matching testdata file exists use it as standard input.
7778
# Otherwise the test doesn't need data on stdin.

regress/copy_binary.ref

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ SELECT hll_cardinality(v1) FROM test_binary;
1616
1
1717
(1 row)
1818

19-
\COPY test_binary TO 'binary.dat' WITH (FORMAT binary)
19+
\COPY test_binary TO 'binary.dat' WITH (FORMAT "binary")
2020
DELETE FROM test_binary;
2121
DELETE 1
2222
SELECT hll_cardinality(v1) FROM test_binary;
2323
hll_cardinality
2424
-----------------
2525
(0 rows)
2626

27-
\COPY test_binary FROM 'binary.dat' WITH (FORMAT binary)
27+
\COPY test_binary FROM 'binary.dat' WITH (FORMAT "binary")
2828
SELECT hll_cardinality(v1) FROM test_binary;
2929
hll_cardinality
3030
-----------------

regress/copy_binary.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ INSERT INTO test_binary(id,v1) VALUES (1, hll_empty() || hll_hash_text('A'));
88

99
SELECT hll_cardinality(v1) FROM test_binary;
1010

11-
\COPY test_binary TO 'binary.dat' WITH (FORMAT binary)
11+
\COPY test_binary TO 'binary.dat' WITH (FORMAT "binary")
1212

1313
DELETE FROM test_binary;
1414

1515
SELECT hll_cardinality(v1) FROM test_binary;
1616

17-
\COPY test_binary FROM 'binary.dat' WITH (FORMAT binary)
17+
\COPY test_binary FROM 'binary.dat' WITH (FORMAT "binary")
1818

1919
SELECT hll_cardinality(v1) FROM test_binary;
2020

0 commit comments

Comments
 (0)