xref: /PHP-7.4/ext/pgsql/tests/06_bug73498.phpt (revision d36d4c70)
1--TEST--
2Bug 73498 Incorrect DELIMITER syntax for pg_copy_to()
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, "(select * from {$view_name})");
13
14var_dump(gettype($rows));
15var_dump(count($rows) > 0);
16
17?>
18--EXPECT--
19string(5) "array"
20bool(true)
21