minor problem in boolean cast

Поиск
Список
Период
Сортировка
От Cary Huang
Тема minor problem in boolean cast
Дата
Msg-id 17557e4dd97.fa5aae1a161459.7726916839177387693@highgo.ca
обсуждение исходный текст
Ответы Re: minor problem in boolean cast  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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 boolean);
bool
------
f
(1 row)
```


Cary Huang
-------------
HighGo Software Inc. (Canada)


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: new heapcheck contrib module
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: speed up unicode decomposition and recomposition