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

Commitf9ea296

Browse files
committed
Make use of PG_INT64_MAX/PG_INT64_MIN
This code was written before those symbols were introduced, but now wecan simplify it.
1 parent4548c76 commitf9ea296

File tree

1 file changed

+2
-2
lines changed
  • src/backend/utils/adt

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/xml.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3637,8 +3637,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
36373637
" <xsd:maxInclusive value=\""INT64_FORMAT"\"/>\n"
36383638
" <xsd:minInclusive value=\""INT64_FORMAT"\"/>\n"
36393639
" </xsd:restriction>\n",
3640-
(((uint64)1) << (sizeof(int64)*8-1))-1,
3641-
(((uint64)1) << (sizeof(int64)*8-1)));
3640+
PG_INT64_MAX,
3641+
PG_INT64_MIN);
36423642
break;
36433643

36443644
caseFLOAT4OID:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp