8000 simplify conditions in check_range_available() · postgrespro/pg_pathman@6dd7737 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 6dd7737

Browse files
committed
simplify conditions in check_range_available()
1 parent a3ca85d commit 6dd7737

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/partition_creation.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,12 +1277,12 @@ check_range_available(Oid parent_relid,
12771277
if (raise_error)
12781278
elog(ERROR, "specified range [%s, %s) overlaps "
12791279
"with existing partitions",
1280-
!IsInfinite(start) ?
1281-
datum_to_cstring(BoundGetValue(start), value_type) :
1282-
"NULL",
1283-
!IsInfinite(end) ?
1284-
datum_to_cstring(BoundGetValue(end), value_type) :
1285-
"NULL");
1280+
IsInfinite(start) ?
1281+
"NULL" :
1282+
datum_to_cstring(BoundGetValue(start), value_type),
1283+
IsInfinite(end) ?
1284+
"NULL" :
1285+
datum_to_cstring(BoundGetValue(end), value_type));
12861286

12871287
else return false;
12881288
}

0 commit comments

Comments
 (0)
0