11pg_meta_data.phpt

来自「php-4.4.7学习linux时下载的源代码」· PHPT 代码 · 共 59 行

PHPT
59
字号
--TEST--PostgreSQL pg_metadata()--SKIPIF--<?php include("skipif.inc"); ?>--FILE--<?phperror_reporting(E_ALL);include 'config.inc';$db = pg_connect($conn_str);$meta = pg_meta_data($db, $table_name);var_dump($meta);?>--EXPECT--array(3) {  ["num"]=>  array(5) {    ["num"]=>    int(1)    ["type"]=>    string(4) "int4"    ["len"]=>    int(4)    ["not null"]=>    bool(false)    ["has default"]=>    bool(false)  }  ["str"]=>  array(5) {    ["num"]=>    int(2)    ["type"]=>    string(4) "text"    ["len"]=>    int(-1)    ["not null"]=>    bool(false)    ["has default"]=>    bool(false)  }  ["bin"]=>  array(5) {    ["num"]=>    int(3)    ["type"]=>    string(5) "bytea"    ["len"]=>    int(-1)    ["not null"]=>    bool(false)    ["has default"]=>    bool(false)  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?