Skip to content

Commit adc507f

Browse files
committed
Fix some bogus code in ConstBit production --- it managed to work, but
only because 14627 still contained the same node that BitWithoutLength had just produced. Make it more transparent. Also adjust ConstCharacter to be coded the same way for consistency.
1 parent b3d36a2 commit adc507f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.463 2004/06/25 21:55:55 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.464 2004/06/28 00:18:47 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -5617,8 +5617,8 @@ ConstBit: BitWithLength
56175617
}
56185618
| BitWithoutLength
56195619
{
5620-
$$->typmod = -1;
56215620
$$ = $1;
5621+
$$->typmod = -1;
56225622
}
56235623
;
56245624

@@ -5687,8 +5687,8 @@ ConstCharacter: CharacterWithLength
56875687
* of one, but should not be constrained if the length
56885688
* was not specified.
56895689
*/
5690-
$1->typmod = -1;
56915690
$$ = $1;
5691+
$$->typmod = -1;
56925692
}
56935693
;
56945694

0 commit comments

Comments
 (0)