非互換
FUJITSU Enterprise Postgres 14では、階乗処理に関して、演算子「!」、演算子「!!」および関数numeric_faを削除します。
numeric_fac関数、「!」と「!!」は使えます。
[例]
=# SELECT numeric_fac(3);
numeric_fac
-------------
6
(1 row)
=# SELECT 3!;
?column?
----------
6
(1 row)
=# SELECT !!3;
?column?
----------
6
(1 row)numeric_fac関数、「!」と「!!」は使えません。
[例]
=# SELECT numeric_fac(3);
ERROR: function numeric_fac(integer) does not exist
LINE 1: SELECT numeric_fac(3);
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
=# SELECT 3!;
ERROR: syntax error at or near ";"
LINE 1: SELECT 3!;
^
=# SELECT !!3;
ERROR: operator does not exist: !! integer
LINE 1: SELECT !!3;
^
HINT: No operator matches the given name and argument type. You might need to add an explicit type cast.対処方法
階乗処理を利用する場合、factorial関数を使ってください。