Commit 0f3720ed authored by Peter Eisentraut's avatar Peter Eisentraut

Treat plain 'BIT' as 'BIT(1)'.

parent 0514ad12
......@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: analyze.c,v 1.166 2000/11/16 22:30:28 tgl Exp $
* $Id: analyze.c,v 1.167 2000/11/18 16:17:20 petere Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -2891,6 +2891,10 @@ transformColumnType(ParseState *pstate, ColumnDef *column)
typename->typmod = VARHDRSZ +
((NUMERIC_DEFAULT_PRECISION << 16) | NUMERIC_DEFAULT_SCALE);
break;
case ZPBITOID:
/* 'bit' -> 'bit(1)' */
typename->typmod = 1;
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment