Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-patches by date

Next:From: Jan WieckDate: 2002-03-20 16:20:20
Subject: Re: Eurodates by default
Previous:From: Tom LaneDate: 2002-03-20 14:44:48
Subject: Re: Eurodates by default

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group