Skip to content

Commit 668918f

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 70c1245 commit 668918f

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
@@ -501,7 +501,7 @@ select numrange(1.0, 2.0) * numrange(2.5, 3.0);
501501
(1 row)
502502

503503
create table numrange_test2(nr numrange);
504-
create index numrange_test2_hash_idx on numrange_test2 (nr);
504+
create index numrange_test2_hash_idx on numrange_test2 using hash (nr);
505505
INSERT INTO numrange_test2 VALUES('[, 5)');
506506
INSERT INTO numrange_test2 VALUES(numrange(1.1, 2.2));
507507
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
@@ -115,7 +115,7 @@ select numrange(1.0, 2.0) * numrange(1.5, 3.0);
115115
select numrange(1.0, 2.0) * numrange(2.5, 3.0);
116116

117117
create table numrange_test2(nr numrange);
118-
create index numrange_test2_hash_idx on numrange_test2 (nr);
118+
create index numrange_test2_hash_idx on numrange_test2 using hash (nr);
119119

120120
INSERT INTO numrange_test2 VALUES('[, 5)');
121121
INSERT INTO numrange_test2 VALUES(numrange(1.1, 2.2));

0 commit comments

Comments
 (0)