File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 77 * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
88 * Portions Copyright (c) 1994, Regents of the University of California
99 *
10- * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.30 2007/02/16 10:42:31 petere Exp $
10+ * $PostgreSQL: pgsql/src/backend/utils/adt/xml.c,v 1.31 2007/02/16 18:37:43 petere Exp $
1111 *
1212 *-------------------------------------------------------------------------
1313 */
4040
4141#include "postgres.h"
4242
43- #ifdef HAVE_STDINT_H
44- #include <stdint.h>
45- #endif
46-
4743#ifdef USE_LIBXML
4844#include <libxml/chvalid.h>
4945#include <libxml/parser.h>
@@ -2189,7 +2185,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
21892185 " <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
21902186 " <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
21912187 " </xsd:restriction>\n" ,
2192- INT64_MAX , INT64_MIN );
2188+ - ((INT64CONST (1 ) << (sizeof (int64 ) * 8 - 1 )) + 1 ),
2189+ (INT64CONST (1 ) << (sizeof (int64 ) * 8 - 1 )));
21932190 break ;
21942191
21952192 case FLOAT4OID :
You can’t perform that action at this time.
0 commit comments