Annotation of embedaddon/php/ext/pgsql/tests/16pg_result_status.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: PostgreSQL pg_result_status()
! 3: --SKIPIF--
! 4: <?php include("skipif.inc"); ?>
! 5: --FILE--
! 6: <?php
! 7: include 'config.inc';
! 8:
! 9: $db = pg_connect($conn_str);
! 10:
! 11: $sql = "SELECT * FROM ".$table_name." WHERE num = -2";
! 12: $result = pg_query($db, "BEGIN;END");
! 13:
! 14: echo pg_result_status($result)."\n";
! 15: echo pg_result_status($result, PGSQL_STATUS_STRING)."\n";
! 16: ?>
! 17: --EXPECT--
! 18: 1
! 19: COMMIT
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>