mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 14:52:30 +02:00
Make use of PG_INT64_MAX/PG_INT64_MIN
This code was written before those symbols were introduced, but now we can simplify it.
This commit is contained in:
parent
4548c76738
commit
f9ea296031
@ -3637,8 +3637,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
|
|||||||
" <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
|
" <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
|
||||||
" <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
|
" <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
|
||||||
" </xsd:restriction>\n",
|
" </xsd:restriction>\n",
|
||||||
(((uint64) 1) << (sizeof(int64) * 8 - 1)) - 1,
|
PG_INT64_MAX,
|
||||||
(((uint64) 1) << (sizeof(int64) * 8 - 1)));
|
PG_INT64_MIN);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FLOAT4OID:
|
case FLOAT4OID:
|
||||||
|
Loading…
Reference in New Issue
Block a user