ページの先頭行へ戻る
Symfoware Server V12.4.0 移行ガイド(OpenインタフェースからSymfoware Server (Postgres)への移行)
FUJITSU Software

Solaris3.3.34 OIDを取得するシステムカタログ情報関数における引数のデータ型の変更

非互換

Symfoware Server (Postgres)では、OIDを取得する以下のシステムカタログ情報関数において、引数のデータ型をcstring型からtext型に変更します。

Symfoware Server (Openインタフェース)の場合

引数のデータ型がcstring型のため、キャストが必要な場合があります。

[例]

=# SELECT to_regclass('t'||'1');
ERROR:  function to_regclass(text) does not exist
LINE 1: SELECT to_regclass('t'||'1');
             ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
=# SELECT to_regclass(('t'||'1')::cstring);
 to_regclass
-------------
 t1
(1 row)
Symfoware Server (Postgres)の場合

引数のデータ型がtext型のため、キャストが不要になります。cstring型にキャストする場合はエラーになります。

[例]

=# SELECT to_regclass('t'||'1');
 to_regclass
-------------
 t1
(1 row)
=# SELECT to_regclass(('t'||'1')::cstring);
ERROR:  function to_regclass(cstring) does not exist
LINE 1: SELECT to_regclass(('t'||'1')::cstring);
               ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

対処方法

引数をcstring型にキャストしている場合は、キャストを削除してください。