differences between <> and != when using signed values on the right hand side
| От | David Hunnisett | 
|---|---|
| Тема | differences between <> and != when using signed values on the right hand side | 
| Дата | |
| Msg-id | B9C40FC5-5FA1-40DF-BC91-114493622F61@probit.io обсуждение исходный текст | 
| Ответы | Re: differences between <> and != when using signed values on the right hand side | 
| Список | pgsql-bugs | 
postgres=# select version();
version
---------------------------------------------------------------------------------------------------------------------------
PostgreSQL 16.3 (Debian 16.3-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
(1 row)
postgres=# select 1<>-1.0;
?column?
----------
t
(1 row)
postgres=# select 1<>-1;
?column?
----------
t
(1 row)
postgres=# select 1!=-1.0;
ERROR: operator does not exist: integer !=- numeric
LINE 1: select 1!=-1.0;
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
postgres=# select 1!=-1;
ERROR: operator does not exist: integer !=- integer
LINE 1: select 1!=-1;
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
select 1!= -1.0;
?column?
----------
t
(1 row)
В списке pgsql-bugs по дате отправления: