Fixes for comments in test_bitmapset
authorDaniel Gustafsson <[email protected]>
Thu, 2 Oct 2025 20:41:24 +0000 (22:41 +0200)
committerDaniel Gustafsson <[email protected]>
Thu, 2 Oct 2025 20:41:24 +0000 (22:41 +0200)
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 <[email protected]>
Reported-by: David Rowley <[email protected]>
Discussion: https://postgr.es/m/978D21E8-9D3B-40EA-A4B1-F87BABE7868C@yesql.se

src/test/modules/test_bitmapset/expected/test_bitmapset.out
src/test/modules/test_bitmapset/sql/test_bitmapset.sql
src/test/modules/test_bitmapset/test_bitmapset.c

index 3198614d6adcafeed616bd356ed5ce752d6c0cdd..f75cb46b86994915f904b5d9248f117e338f5d8b 100644 (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 
 --------
index 0a2fa1510939c6ee27a8fbbdcd48513fd982074b..e75ab8f620a7009ce715e882a7c14a64db8e8b74 100644 (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(
index 0d6c2e7aa1bec27ca288abb2f489b0506470ae40..6364eba832c062f06d86a755dce7b64078027b8e 100644 (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);
 }