|
5 | 5 | * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
6 | 6 | * Portions Copyright (c) 1994, Regents of the University of California
|
7 | 7 | *
|
8 |
| - * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.176 2002/10/14 22:14:34 tgl Exp $ |
| 8 | + * $Header: /cvsroot/pgsql/src/backend/nodes/outfuncs.c,v 1.176.2.1 2007/07/17 01:22:25 tgl Exp $ |
9 | 9 | *
|
10 | 10 | * NOTES
|
11 | 11 | * Every (plan) node in POSTGRES has an associated "out" routine which
|
@@ -1320,6 +1320,10 @@ _outValue(StringInfo str, Value *value)
|
1320 | 1320 | /* internal representation already has leading 'b' */
|
1321 | 1321 | appendStringInfo(str, " %s ", value->val.str);
|
1322 | 1322 | break;
|
| 1323 | + case T_Null: |
| 1324 | + /* this is seen only within A_Const, not in transformed trees */ |
| 1325 | + appendStringInfo(str, " NULL "); |
| 1326 | + break; |
1323 | 1327 | default:
|
1324 | 1328 | elog(WARNING, "_outValue: don't know how to print type %d ",
|
1325 | 1329 | value->type);
|
@@ -1367,7 +1371,7 @@ _outParamRef(StringInfo str, ParamRef *node)
|
1367 | 1371 | static void
|
1368 | 1372 | _outAConst(StringInfo str, A_Const *node)
|
1369 | 1373 | {
|
1370 |
| - appendStringInfo(str, "CONST "); |
| 1374 | + appendStringInfo(str, " A_CONST :val "); |
1371 | 1375 | _outValue(str, &(node->val));
|
1372 | 1376 | appendStringInfo(str, " :typename ");
|
1373 | 1377 | _outNode(str, node->typename);
|
|
0 commit comments