|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.82 1999/05/21 18:31:04 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.83 1999/05/21 18:33:12 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *
|
13 | 13 | * INTERFACE ROUTINES
|
@@ -1543,14 +1543,16 @@ StoreAttrDefault(Relation rel, AttrDefault *attrdef)
|
1543 | 1543 | *length on the disk, requiring non-bpchar types to be padded
|
1544 | 1544 | *before storage in the default table. bjm 1999/05/18
|
1545 | 1545 | */
|
1546 |
| -if (atp->atttypid==BPCHAROID&& |
| 1546 | +if (1==0&&atp->atttypid==BPCHAROID&& |
1547 | 1547 | (type==TEXTOID||type==BPCHAROID||type==UNKNOWNOID))
|
1548 | 1548 | {
|
| 1549 | + |
1549 | 1550 | FuncCall*n=makeNode(FuncCall);
|
1550 | 1551 |
|
1551 | 1552 | n->funcname=typeidTypeName(atp->atttypid);
|
1552 | 1553 | n->args=lcons((Node*)expr,NIL);
|
1553 | 1554 | expr=transformExpr(NULL, (Node*)n,EXPR_COLUMN_FIRST);
|
| 1555 | + |
1554 | 1556 | }
|
1555 | 1557 | elseif (IS_BINARY_COMPATIBLE(type,atp->atttypid))
|
1556 | 1558 | ;/* use without change */
|
|