mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -5646,7 +5646,7 @@ doNegateFloat(Value *v)
|
|||||||
if (*oldval == '+')
|
if (*oldval == '+')
|
||||||
oldval++;
|
oldval++;
|
||||||
if (*oldval == '-')
|
if (*oldval == '-')
|
||||||
v->val.str = oldval; /* just strip the '-' */
|
v->val.str = oldval+1; /* just strip the '-' */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char *newval = (char *) palloc(strlen(oldval) + 2);
|
char *newval = (char *) palloc(strlen(oldval) + 2);
|
||||||
|
Reference in New Issue
Block a user