BUG #15836: Casting 'of' to boolean type should throw an invalid input syntax

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: wgyumg(at)gmail(dot)com
Subject: BUG #15836: Casting 'of' to boolean type should throw an invalid input syntax
Date: 2019-06-05 21:36:48
Message-ID: 15836-656fab055735f511@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15836
Logged by: Yuming Wang
Email address: wgyumg(at)gmail(dot)com
PostgreSQL version: 12beta1
Operating system: linux
Description:

Converting 'of' to a boolean type should throw an invalid input syntax.
Because we said in the documentation that 'of' is not accepted as an input
to the boolean data type:
https://www.postgresql.org/docs/12/datatype-boolean.html
```
postgres=# select cast('of' as boolean);
bool
------
f
(1 row)
```

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2019-06-05 21:49:47 Re: BUG #15836: Casting 'of' to boolean type should throw an invalid input syntax
Previous Message Alvaro Herrera 2019-06-05 18:36:00 Re: Indexes on expressions that include user-defined functions are not reindexed when the function definition is changed