成人精品一区二区三区中文字幕-成人精品一区二区三区-成人精品一级毛片-成人精品亚洲-日本在线视频一区二区-日本在线视频免费

導航首頁 ? 技術教程 ? PHP:pg_set_error_verbosity()的用法_PostgreSQL函數
全站頭部文字 我要出現在這里
PHP:pg_set_error_verbosity()的用法_PostgreSQL函數 732 2023-12-12   

pg_set_error_verbosity

(PHP 5 >= 5.1.0)

pg_set_error_verbosity — Determines the verbosity of messages returned by pg_last_error() and pg_result_error().

說明

int pg_set_error_verbosity ([ resource $connection ], int $verbosity )

Determines the verbosity of messages returned by pg_last_error() and pg_result_error().

pg_set_error_verbosity() sets the verbosity mode, returning the connection's previous setting. In PGSQL_ERRORS_TERSE mode, returned messages include severity, primary text, and position only; this will normally fit on a single line. The default mode (PGSQL_ERRORS_DEFAULT) produces messages that include the above plus any detail, hint, or context fields (these may span multiple lines). The PGSQL_ERRORS_VERBOSE mode includes all available fields. Changing the verbosity does not affect the messages available from already-existing result objects, only subsequently-created ones.

參數

connection

PostgreSQL database connection resource. When connection is not present, the default connection is used. The default connection is the last connection made by pg_connect() or pg_pconnect().

verbosity

The required verbosity: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.

返回值

The previous verbosity level: PGSQL_ERRORS_TERSE, PGSQL_ERRORS_DEFAULT or PGSQL_ERRORS_VERBOSE.

范例

Example #1 pg_set_error_verbosity() example

<?php
  $dbconn = pg_connect("dbname=publisher") or die("Could not connect");

  if (!pg_connection_busy($dbconn)) {
      pg_send_query($dbconn, "select * from doesnotexist;");
  }
  
  pg_set_error_verbosity($dbconn, PGSQL_ERRORS_VERBOSE);
  $res1 = pg_get_result($dbconn);
  echo pg_result_error($res1);
?>

參見

pg_last_error() - 得到某連接的最后一條錯誤信息 pg_result_error() - 獲得查詢結果的錯誤信息


主站蜘蛛池模板: 空姐一级毛片| 缝鞋子针法视频| 夜之女王 电影| 真正的正义韩国电影| 尸家重地演员表| 茶馆剧本完整版| 爱神的诱惑电影| 新疆地图旅游图| 空姐一级毛片| 惊弦电视剧完整版免费观看高清| 各各他的爱的歌谱| 好好操视频| 抖 音| 哥哥太爱我怎么办| 肖叮叮的剿匪记 电视剧免费观看| 4人免费剧本及答案| 生活秀| 阿娇老公| 小马宝莉之小马国女孩| 韩国电影朋友的妻| 鹤壁旅游必去十大景点| 一句话让老公下面硬| 男操女视频免费| s0hu搜狐| 金鸳鸯| 疯狂 电影| 怀男孩和女孩有什么区别| 风花雪月1977版| 《一生一世》免费观看完整版| 电影白蛇传| 孤独感爆满的头像| 中女| 故都的秋ppt| 森林运动会作文三年级300字| 天台电影| 傅青主治闭经特效方| 黄视频免费在线播放| 重口味sm| 暗夜尖叫1988美国版高清观看| 日韩大胆视频| 电影不知不觉诱惑你|

!!!站長長期在線接!!!

網站、小程序:定制開發/二次開發/仿制開發等

各種疑難雜癥解決/定制接口/定制采集等

站長微信:lxwl520520

站長QQ:1737366103