summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane2000-02-22 00:05:04 +0000
committerTom Lane2000-02-22 00:05:04 +0000
commite391c15ca5971bd1f1be3577f77b86400bba820a (patch)
tree77a3261160afb983bc030d10f42402a25e42e8ed /src
parente1a95def8b38393d2b0819d27a33ce9a15f6510a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/gram.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index b81b6d387ab..d6fc0b0a625 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.148 2000/02/21 18:47:02 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.149 2000/02/22 00:05:04 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -5646,7 +5646,7 @@ doNegateFloat(Value *v)
if (*oldval == '+')
oldval++;
if (*oldval == '-')
- v->val.str = oldval; /* just strip the '-' */
+ v->val.str = oldval+1; /* just strip the '-' */
else
{
char *newval = (char *) palloc(strlen(oldval) + 2);