2002-04-08 01:37:38 +00:00
|
|
|
--TEST--
|
|
|
|
PostgreSQL pg_metadata()
|
|
|
|
--SKIPIF--
|
|
|
|
<?php include("skipif.inc"); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
2002-10-02 02:11:27 +00:00
|
|
|
include("pg_meta_data.inc");
|
2002-04-08 01:37:38 +00:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
array(3) {
|
|
|
|
["num"]=>
|
|
|
|
array(5) {
|
|
|
|
["num"]=>
|
|
|
|
int(1)
|
|
|
|
["type"]=>
|
|
|
|
string(4) "int4"
|
|
|
|
["len"]=>
|
|
|
|
int(4)
|
|
|
|
["not null"]=>
|
|
|
|
bool(false)
|
2002-04-19 12:24:58 +00:00
|
|
|
["has default"]=>
|
2002-04-08 01:37:38 +00:00
|
|
|
bool(false)
|
|
|
|
}
|
|
|
|
["str"]=>
|
|
|
|
array(5) {
|
|
|
|
["num"]=>
|
|
|
|
int(2)
|
|
|
|
["type"]=>
|
|
|
|
string(4) "text"
|
|
|
|
["len"]=>
|
|
|
|
int(-1)
|
|
|
|
["not null"]=>
|
|
|
|
bool(false)
|
2002-04-19 12:24:58 +00:00
|
|
|
["has default"]=>
|
2002-04-08 01:37:38 +00:00
|
|
|
bool(false)
|
|
|
|
}
|
|
|
|
["bin"]=>
|
|
|
|
array(5) {
|
|
|
|
["num"]=>
|
|
|
|
int(3)
|
|
|
|
["type"]=>
|
|
|
|
string(5) "bytea"
|
|
|
|
["len"]=>
|
|
|
|
int(-1)
|
|
|
|
["not null"]=>
|
|
|
|
bool(false)
|
2002-04-19 12:24:58 +00:00
|
|
|
["has default"]=>
|
2002-04-08 01:37:38 +00:00
|
|
|
bool(false)
|
|
|
|
}
|
|
|
|
}
|