You can use pg_set_error_verbosity() to retrieve SQLSTATUS from pg_last_error().
pg_result_error说明string pg_result_error ( resource result )pg_result_error() 返回和 result 资源关联的错误信息。因此用户更有机会可以得到比 pg_last_error() 更好的错误信息。 参见 pg_query(),pg_send_query(),pg_get_result(),pg_last_error() 和 pg_last_notice()。
add a note
User Contributed Notes
axon dot wp at wp dot pl
03-Mar-2006 08:20
You can use pg_set_error_verbosity() to retrieve SQLSTATUS from pg_last_error().
16-Mar-2004 08:12
Because pg_query() returns FALSE if the query fails, you must must use pg_send_query() and pg_get_result() to get the result handle. | ||