|
6 | 6 | *
|
7 | 7 | *
|
8 | 8 | * IDENTIFICATION
|
9 |
| - * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.21 1997/08/22 00:02:08 momjian Exp $ |
| 9 | + * $Header: /cvsroot/pgsql/src/backend/parser/parser.c,v 1.22 1997/08/22 07:12:45 momjian Exp $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -196,7 +196,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
|
196 | 196 | case T_Integer:
|
197 | 197 | const_string = (char *) palloc(256);
|
198 | 198 | string_palloced = true;
|
199 |
| - sprintf(const_string, "%ld", expr->val.ival); |
| 199 | + sprintf(const_string, "%d", expr->val.ival); |
200 | 200 | break;
|
201 | 201 | default:
|
202 | 202 | elog(WARN,
|
@@ -242,7 +242,7 @@ parser_typecast(Value *expr, TypeName *typename, int typlen)
|
242 | 242 | case CASHOID: /* money */
|
243 | 243 | const_string = (char *) palloc(256);
|
244 | 244 | string_palloced = true;
|
245 |
| - sprintf(const_string,"%ld", |
| 245 | + sprintf(const_string,"%d", |
246 | 246 | (int) ((Const*)expr)->constvalue);
|
247 | 247 | break;
|
248 | 248 |
|
@@ -360,7 +360,7 @@ parser_typecast2(Node *expr, Oid exprType, Type tp, int typlen)
|
360 | 360 | case CASHOID: /* money */
|
361 | 361 | const_string = (char *) palloc(256);
|
362 | 362 | string_palloced = true;
|
363 |
| - sprintf(const_string,"%ld", |
| 363 | + sprintf(const_string,"%d", |
364 | 364 | (long) ((Const*)expr)->constvalue);
|
365 | 365 | break;
|
366 | 366 | case TEXTOID: /* text */
|
|
0 commit comments