Re: Not to to confusing - Mailing list pgsql-patches

From Tom Lane
Subject Re: Not to to confusing
Date
Msg-id 7193.1113283711@sss.pgh.pa.us
Whole thread Raw
In response to Not to to confusing  ("Greg Sabino Mullane" <greg@turnstep.com>)
List pgsql-patches
"Greg Sabino Mullane" <greg@turnstep.com> writes:
>         else if (pg_strcasecmp(prev4_wd, "TABLE") == 0 &&
> !                        pg_strcasecmp(prev2_wd, "RENAME") == 0 &&
> !                                        pg_strcasecmp(prev_wd, "TO"))
>                 COMPLETE_WITH_CONST("TO");

In order to be somewhat consistent and not too confusing, could we
spell that as 'pg_strcasecmp(prev_wd, "TO") != 0' please?

(See previous rant about the undesirability of pretending that
integers are booleans...)

            regards, tom lane

pgsql-patches by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Not to to confusing
Next
From: Tom Lane
Date:
Subject: Re: Remove unneeded left joins from psql