pg_result_error
結果に関連するエラーメッセージを取得する
&reftitle.description;
stringpg_result_error
resourceresult
pg_result_error は、結果リソース
(result)に関連したエラーメッセージを返します。
このため、ユーザーが pg_last_error よりも適切な
エラーメッセージを得る可能性があります。
pg_result_error_field は、
pg_result_error よりもさらに詳細なエラー情報を
返します。
pg_query はクエリが失敗した場合に &false; を返すので、
結果ハンドルを取得するには pg_send_query および
pg_get_result を使用する必要があります。
&reftitle.parameters;
result
pg_query, pg_query_params
あるいは pg_execute から返される PostgreSQL の
クエリ結果リソース。
&reftitle.returnvalues;
result パラメータに関連付けられたエラーがある場合は
それを文字列で返し、それ以外の場合は &false; を返します。
&reftitle.examples;
pg_result_error の例
]]>
&reftitle.seealso;
pg_result_error_field
pg_query
pg_send_query
pg_get_result
pg_last_error
pg_last_notice