Re: minor problem in boolean cast

2020-10-23 Thread Tom Lane
Cary Huang writes: > I noticed that when casting a string to boolean value with input 'of' it > still cast it to 'f'. I think with 'of', it should give an error because > 'off' is the expected candidate. This may not be intended so I made a simple > patch to address this.  It's absolutely inte

minor problem in boolean cast

2020-10-23 Thread Cary Huang
Hi I noticed that when casting a string to boolean value with input 'of' it still cast it to 'f'. I think with 'of', it should give an error because 'off' is the expected candidate. This may not be intended so I made a simple patch to address this.  ``` postgres=# select cast('of' as boole