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