Skip to content

Commit bb0e3ce

Browse files
author
Amit Kapila
committed
Fix oversight in commit 4429f6a.
The test name and the following test cases suggest the index created should be hash index, but it forgot to add 'using hash' in the test case. This in itself won't improve code coverage as there were some other tests which were covering the corresponding code. However, it is better if the added tests serve their actual purpose. Reported-by: Paul A Jungwirth Author: Paul A Jungwirth Reviewed-by: Mahendra Singh Backpatch-through: 9.4 Discussion: https://postgr.es/m/CA+renyV=Us-5XfMC25bNp-uWSj39XgHHmGE9Rh2cQKMegSj52g@mail.gmail.com
1 parent fbfa566 commit bb0e3ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/rangetypes.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ select numrange(1.0, 2.0) * numrange(2.5, 3.0);
519519
(1 row)
520520

521521
create table numrange_test2(nr numrange);
522-
create index numrange_test2_hash_idx on numrange_test2 (nr);
522+
create index numrange_test2_hash_idx on numrange_test2 using hash (nr);
523523
INSERT INTO numrange_test2 VALUES('[, 5)');
524524
INSERT INTO numrange_test2 VALUES(numrange(1.1, 2.2));
525525
INSERT INTO numrange_test2 VALUES(numrange(1.1, 2.2));

src/test/regress/sql/rangetypes.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ select numrange(1.0, 2.0) * numrange(1.5, 3.0);
119119
select numrange(1.0, 2.0) * numrange(2.5, 3.0);
120120

121121
create table numrange_test2(nr numrange);
122-
create index numrange_test2_hash_idx on numrange_test2 (nr);
122+
create index numrange_test2_hash_idx on numrange_test2 using hash (nr);
123123

124124
INSERT INTO numrange_test2 VALUES('[, 5)');
125125
INSERT INTO numrange_test2 VALUES(numrange(1.1, 2.2));

0 commit comments

Comments
 (0)