Re: useless statements in parse_datestyle_internal

From: Thomas Lockhart <thomas(at)fourpalms(dot)org>
To: Yury Bokhoncovich <byg(at)center-f1(dot)ru>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: useless statements in parse_datestyle_internal
Date: 2002-03-20 15:00:10
Message-ID: 3C98A3FA.98D1A05C@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> =======================
> --- src/backend/commands/variable.c.orig Wed Mar 20 15:25:07 2002
> +++ src/backend/commands/variable.c.new Wed Mar 20 17:33:45 2002
> @@ -223,8 +223,6 @@
> DateStyle = USE_GERMAN_DATES;
> dcnt++;
> EuroDates = TRUE;
> - if ((ecnt > 0) && (!EuroDates))
> - ecnt++;
> }
> else if (!strncasecmp(tok, "EURO", 4))
> {

Thanks Yury. I'll fix it by moving the EuroDates = TRUE down below the
check on ecnt and EuroDates, rather than removing the check. But you're
right, the code as-is doesn't do much useful :)

- Thomas

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Jan Wieck 2002-03-20 16:20:20 Re: Eurodates by default
Previous Message Tom Lane 2002-03-20 14:44:48 Re: Eurodates by default