Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit381f5cf

Browse files
Remove check for NULL in STRICT function
test_bms_make_singleton is defined as STRICT and only takes a singleparameter, so there is no need to check that parameter for NULL as aNULL input won't ever reach there.Author: Daniel Gustafsson <daniel@yesql.se>Discussion:https://postgr.es/m/BC483901-9587-4076-B20F-9A414C66AB78@yesql.se
1 parenta1b064e commit381f5cf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎src/test/modules/test_bitmapset/test_bitmapset.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ test_bms_make_singleton(PG_FUNCTION_ARGS)
201201
Bitmapset*bms;
202202
int32member;
203203

204-
if (PG_ARGISNULL(0))
205-
PG_RETURN_NULL();/* invalid input */
206-
207204
member=PG_GETARG_INT32(0);
208205
bms=bms_make_singleton(member);
209206

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp