Content-Length: 263737 | pFad | http://github.com/postgrespro/postgres/commit/f9ea2960310c235a7ae97847c0757eba9f6f9a85

8E Make use of PG_INT64_MAX/PG_INT64_MIN · postgrespro/postgres@f9ea296 · GitHub
Skip to content

Commit f9ea296

Browse files
committed
Make use of PG_INT64_MAX/PG_INT64_MIN
This code was written before those symbols were introduced, but now we can simplify it.
1 parent 4548c76 commit f9ea296

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
case FLOAT4OID:

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f9ea2960310c235a7ae97847c0757eba9f6f9a85

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy