Annotation of embedaddon/php/ext/pgsql/tests/11pg_meta_data.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: PostgreSQL pg_metadata()
                      3: --SKIPIF--
                      4: <?php include("skipif.inc"); ?>
                      5: --FILE--
                      6: <?php
                      7: error_reporting(E_ALL);
                      8: 
                      9: include 'config.inc';
                     10: 
                     11: $db = pg_connect($conn_str);
                     12: 
                     13: $meta = pg_meta_data($db, $table_name);
                     14: 
                     15: var_dump($meta);
                     16: ?>
                     17: --EXPECT--
                     18: array(3) {
                     19:   ["num"]=>
                     20:   array(6) {
                     21:     ["num"]=>
                     22:     int(1)
                     23:     ["type"]=>
                     24:     string(4) "int4"
                     25:     ["len"]=>
                     26:     int(4)
                     27:     ["not null"]=>
                     28:     bool(false)
                     29:     ["has default"]=>
                     30:     bool(false)
                     31:     ["array dims"]=>
                     32:     int(0)
                     33:   }
                     34:   ["str"]=>
                     35:   array(6) {
                     36:     ["num"]=>
                     37:     int(2)
                     38:     ["type"]=>
                     39:     string(4) "text"
                     40:     ["len"]=>
                     41:     int(-1)
                     42:     ["not null"]=>
                     43:     bool(false)
                     44:     ["has default"]=>
                     45:     bool(false)
                     46:     ["array dims"]=>
                     47:     int(0)
                     48:   }
                     49:   ["bin"]=>
                     50:   array(6) {
                     51:     ["num"]=>
                     52:     int(3)
                     53:     ["type"]=>
                     54:     string(5) "bytea"
                     55:     ["len"]=>
                     56:     int(-1)
                     57:     ["not null"]=>
                     58:     bool(false)
                     59:     ["has default"]=>
                     60:     bool(false)
                     61:     ["array dims"]=>
                     62:     int(0)
                     63:   }
                     64: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>