Parsing bool type value - Mailing list pgsql-hackers

From Sawada Masahiko
Subject Parsing bool type value
Date
Msg-id CAD21AoDWG3car9gFd5n-cqUbAp33gxWzbGuyj4DWDYswdZR79g@mail.gmail.com
Whole thread Raw
Responses Re: Parsing bool type value  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Hi all,

Taking a look at PostgreSQL HEAD today, I noticed that currently
PostgreSQL allows "of" value as bool type value.
So user can execute the following SQL.

=# SET enbale_seqscan TO of;

And I read the source code related to parsing bool value.
It compare TWO characters "off" and the setting value in
parse_bool_with_len() function.
Should we deny the "of" value as bool type value?

Regards,

-------
Sawada Masahiko

Attachment

pgsql-hackers by date:

Previous
From: amulsul
Date:
Subject: Re: undefined symbol: PQescapeLiteral
Next
From: Boszormenyi Zoltan
Date:
Subject: Re: Extension Templates S03E11