Annotation of embedaddon/php/ext/pgsql/tests/06copy.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: PostgreSQL copy functions
! 3: --SKIPIF--
! 4: <?php include("skipif.inc"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: include('config.inc');
! 9:
! 10: $db = pg_connect($conn_str);
! 11:
! 12: $rows = pg_copy_to($db, $table_name);
! 13:
! 14: pg_query($db, "DELETE FROM $table_name");
! 15:
! 16: pg_copy_from($db, $table_name, $rows);
! 17:
! 18: echo "OK";
! 19:
! 20: ?>
! 21: --EXPECT--
! 22: OK
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>