xref: /PHP-7.1/ext/pgsql/tests/06copy.phpt (revision e2b87e62)
1--TEST--
2PostgreSQL copy functions
3--SKIPIF--
4<?php include("skipif.inc"); ?>
5--FILE--
6<?php
7
8include('config.inc');
9
10$db = pg_connect($conn_str);
11
12$rows = pg_copy_to($db, $table_name);
13
14pg_query($db, "DELETE FROM $table_name");
15
16pg_copy_from($db, $table_name, $rows);
17
18echo "OK";
19
20?>
21--EXPECT--
22OK
23