File tree 1 file changed +3
-6
lines changed 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 7
7
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
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 $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
40
40
41
41
#include "postgres.h"
42
42
43
- #ifdef HAVE_STDINT_H
44
- #include <stdint.h>
45
- #endif
46
-
47
43
#ifdef USE_LIBXML
48
44
#include <libxml/chvalid.h>
49
45
#include <libxml/parser.h>
@@ -2189,7 +2185,8 @@ map_sql_type_to_xmlschema_type(Oid typeoid, int typmod)
2189
2185
" <xsd:maxInclusive value=\"" INT64_FORMAT "\"/>\n"
2190
2186
" <xsd:minInclusive value=\"" INT64_FORMAT "\"/>\n"
2191
2187
" </xsd:restriction>\n" ,
2192
- INT64_MAX , INT64_MIN );
2188
+ - ((INT64CONST (1 ) << (sizeof (int64 ) * 8 - 1 )) + 1 ),
2189
+ (INT64CONST (1 ) << (sizeof (int64 ) * 8 - 1 )));
2193
2190
break ;
2194
2191
2195
2192
case FLOAT4OID :
You can’t perform that action at this time.
0 commit comments