pg_escape_identifier
テキスト型フィールドに挿入するために、識別子をエスケープする
&reftitle.description;
stringpg_escape_identifier
PgSql\Connectionconnection
stringdata
pg_escape_identifier は、データベースへの問い合わせに使う識別子
(テーブル名やフィールド名など) をエスケープします。
PostgreSQL サーバー用にエスケープされた識別子を返します。
pg_escape_identifier は、データの前後にダブルクォートを追加します。
ユーザーが自分で追加してはいけません。
この関数は、クエリ内で使う識別子のパラメータに有用です。SQL リテラル
(bytea 以外のパラメータ) には、pg_escape_literal
あるいは pg_escape_string を使わなければなりません。
bytea 型のフィールドには、pg_escape_bytea
を使わなければなりません。
この関数は内部的なエスケープコードを使い、PostgreSQL 8.4 より前のバージョンでも使えます。
&reftitle.parameters;
connection
&pgsql.parameter.connection-with-unspecified-default;
data
エスケープするテキスト文字列。
&reftitle.returnvalues;
エスケープされたデータを文字列で返します。
&reftitle.changelog;
&Version;
&Description;
&pgsql.changelog.connection-object;
&reftitle.examples;
pg_escape_identifier の例
]]>
&reftitle.seealso;
pg_escape_literal
pg_escape_bytea
pg_escape_string