Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0f3720e

Browse files
committed
Treat plain 'BIT' as 'BIT(1)'.
1 parent0514ad1 commit0f3720e

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+
caseZPBITOID:
2895+
/* 'bit' -> 'bit(1)' */
2896+
typename->typmod=1;
2897+
break;
28942898
}
28952899
}
28962900

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp