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
<>
(1 row)
--- Substraction to empty
+-- Subtraction to empty
SELECT test_bms_difference('(b 42)', '(b 42)') AS result;
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(
/* 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);
}