mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Rename BITSPERBYTE to BITS_PER_BYTE to avoid conflict with <values.h>
on some platforms.
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.186 2000/08/12 05:15:21 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.187 2000/08/26 21:53:43 tgl Exp $
|
||||
*
|
||||
* HISTORY
|
||||
* AUTHOR DATE MAJOR EVENT
|
||||
@ -4163,9 +4163,9 @@ Bit: bit '(' Iconst ')'
|
||||
if ($3 < 1)
|
||||
elog(ERROR,"length for type '%s' must be at least 1",
|
||||
$1);
|
||||
else if ($3 > (MaxAttrSize * BITSPERBYTE))
|
||||
else if ($3 > (MaxAttrSize * BITS_PER_BYTE))
|
||||
elog(ERROR,"length for type '%s' cannot exceed %d",
|
||||
$1, (MaxAttrSize * BITSPERBYTE));
|
||||
$1, (MaxAttrSize * BITS_PER_BYTE));
|
||||
$$->typmod = $3;
|
||||
}
|
||||
| bit
|
||||
|
Reference in New Issue
Block a user