Skip to content

Commit e391c15

Browse files
committed
First post-beta1 bug fix :-(. Silly typo in new coding for doNegate
failed to negate a negative value back to positive, so '- - 123.45' did the wrong thing.
1 parent e1a95de commit e391c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/gram.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.148 2000/02/21 18:47:02 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.149 2000/02/22 00:05:04 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -5646,7 +5646,7 @@ doNegateFloat(Value *v)
56465646
if (*oldval == '+')
56475647
oldval++;
56485648
if (*oldval == '-')
5649-
v->val.str = oldval; /* just strip the '-' */
5649+
v->val.str = oldval+1; /* just strip the '-' */
56505650
else
56515651
{
56525652
char *newval = (char *) palloc(strlen(oldval) + 2);

0 commit comments

Comments
 (0)