1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-15 05:46:52 +03:00

Fixes for comments in test_bitmapset

This fixes a typo in the sql/expected test files and removes a
leftover comment from test_bitmapset.c from when the functions
invoked bms_free.

Author: Daniel Gustafsson <daniel@yesql.se>
Reported-by: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/978D21E8-9D3B-40EA-A4B1-F87BABE7868C@yesql.se
This commit is contained in:
Daniel Gustafsson
2025-10-02 22:41:24 +02:00
parent b292256272
commit a1b064e4b2
3 changed files with 2 additions and 4 deletions

View File

@@ -479,7 +479,7 @@ SELECT test_bms_difference('(b 1 3 5)', '(b 1 3 5)') AS result;
<>
(1 row)
-- Substraction to empty
-- Subtraction to empty
SELECT test_bms_difference('(b 42)', '(b 42)') AS result;
result
--------

View File

@@ -130,7 +130,7 @@ SELECT test_bms_difference('(b 1 3 5)', '(b 3 5 7)') AS result;
SELECT test_bms_difference('(b 1 3 5)', '(b 2 4 6)') AS result;
-- Identical sets
SELECT test_bms_difference('(b 1 3 5)', '(b 1 3 5)') AS result;
-- Substraction to empty
-- Subtraction to empty
SELECT test_bms_difference('(b 42)', '(b 42)') AS result;
-- Subtraction edge case
SELECT test_bms_difference(

View File

@@ -543,8 +543,6 @@ test_bms_join(PG_FUNCTION_ARGS)
/* either input can be recycled */
result_bms = bms_join(bms1, bms2);
/* memory cleanup seems more tricky than it's worth here */
PG_RETURN_BITMAPSET_AS_TEXT(result_bms);
}