diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-28 00:18:47 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-28 00:18:47 +0000 |
commit | adc507f24244972c51f466ba5e960b6ad6a504e2 (patch) | |
tree | c76a14b98b93b59e8ebc94683cc7f0205248fa1a /src | |
parent | b3d36a24679bc07b9f2bfd93ab2f900e9d4cdd8e (diff) | |
download | postgresql-adc507f24244972c51f466ba5e960b6ad6a504e2.tar.gz postgresql-adc507f24244972c51f466ba5e960b6ad6a504e2.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/parser/gram.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 7da8affbf91..9c94fe9a4f3 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -11,7 +11,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.463 2004/06/25 21:55:55 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.464 2004/06/28 00:18:47 tgl Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -5617,8 +5617,8 @@ ConstBit: BitWithLength } | BitWithoutLength { - $$->typmod = -1; $$ = $1; + $$->typmod = -1; } ; @@ -5687,8 +5687,8 @@ ConstCharacter: CharacterWithLength * of one, but should not be constrained if the length * was not specified. */ - $1->typmod = -1; $$ = $1; + $$->typmod = -1; } ; |