summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/06copy.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/06copy.phpt')
-rw-r--r--ext/pgsql/tests/06copy.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/pgsql/tests/06copy.phpt b/ext/pgsql/tests/06copy.phpt
new file mode 100644
index 0000000..bed783a
--- /dev/null
+++ b/ext/pgsql/tests/06copy.phpt
@@ -0,0 +1,22 @@
+--TEST--
+PostgreSQL copy functions
+--SKIPIF--
+<?php include("skipif.inc"); ?>
+--FILE--
+<?php
+
+include('config.inc');
+
+$db = pg_connect($conn_str);
+
+$rows = pg_copy_to($db, $table_name);
+
+pg_query($db, "DELETE FROM $table_name");
+
+pg_copy_from($db, $table_name, $rows);
+
+echo "OK";
+
+?>
+--EXPECT--
+OK