Re: pgsql: Accept 'on' and 'off' as input for boolean data type, unifying

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Accept 'on' and 'off' as input for boolean data type, unifying
Date: 2009-03-09 16:33:57
Message-ID: 27699.1236616437@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

petere(at)postgresql(dot)org (Peter Eisentraut) writes:
> Accept 'on' and 'off' as input for boolean data type, unifying the syntax
> that the data type and GUC accepts.

ISTM the failure case in parse_bool_with_len will dump core if "result"
is passed as NULL.

regards, tom lane

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2009-03-09 16:49:13 pgsql: In parse_bool_with_len, avoid crash when no result pointer is
Previous Message Peter Eisentraut 2009-03-09 15:04:21 pgsql: Tweak the regression test case so that the ordering of numbers