Re: [HACKERS] Parsing bool type value

2013-08-20 Thread Sawada Masahiko
On Tue, Aug 20, 2013 at 11:53 PM, Amit Kapila wrote: > On Tue, Aug 20, 2013 at 1:11 PM, Sawada Masahiko > wrote: >> 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. >> >> =

Re: [HACKERS] Parsing bool type value

2013-08-20 Thread Amit Kapila
On Tue, Aug 20, 2013 at 1:11 PM, Sawada Masahiko wrote: > 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

[HACKERS] Parsing bool type value

2013-08-20 Thread Sawada Masahiko
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