diff options
| author | Craig Duncan <git@duncanc.co.uk> | 2016-11-21 19:49:18 +0000 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2016-11-22 00:42:45 +0100 |
| commit | d36d4c70d3df2799af5dbb150660a70ffc60fc77 (patch) | |
| tree | 70ae78eb52dca15a896a6d9e256a4d618ee1b7a5 /ext/pgsql/tests/06_bug73498.phpt | |
| parent | 850c1095ab6b7c988c4ba8a9182085abe56f211c (diff) | |
| download | php-git-d36d4c70d3df2799af5dbb150660a70ffc60fc77.tar.gz | |
Add a test for bug 73498
Diffstat (limited to 'ext/pgsql/tests/06_bug73498.phpt')
| -rw-r--r-- | ext/pgsql/tests/06_bug73498.phpt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/pgsql/tests/06_bug73498.phpt b/ext/pgsql/tests/06_bug73498.phpt new file mode 100644 index 0000000000..fdb2af2f97 --- /dev/null +++ b/ext/pgsql/tests/06_bug73498.phpt @@ -0,0 +1,20 @@ +--TEST-- +Bug 73498 Incorrect DELIMITER syntax for pg_copy_to() +--SKIPIF-- +<?php include("skipif.inc"); ?> +--FILE-- +<?php + +include('config.inc'); + +$db = pg_connect($conn_str); + +$rows = pg_copy_to($db, "(select * from {$view_name})"); + +var_dump(gettype($rows)); +var_dump(count($rows) > 0); + +?> +--EXPECT-- +string(5) "array" +bool(true) |
