Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0f3720e

Browse files
committed
Treat plain 'BIT' as 'BIT(1)'.
1 parent 0514ad1 commit 0f3720e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/parser/analyze.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: analyze.c,v 1.166 2000/11/16 22:30:28 tgl Exp $
9+
* $Id: analyze.c,v 1.167 2000/11/18 16:17:20 petere Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -2891,6 +2891,10 @@ transformColumnType(ParseState *pstate, ColumnDef *column)
28912891
typename->typmod = VARHDRSZ +
28922892
((NUMERIC_DEFAULT_PRECISION << 16) | NUMERIC_DEFAULT_SCALE);
28932893
break;
2894+
case ZPBITOID:
2895+
/* 'bit' -> 'bit(1)' */
2896+
typename->typmod = 1;
2897+
break;
28942898
}
28952899
}
28962900

0 commit comments

Comments
 (0)