06copy.phpt 299 B

12345678910111213141516171819202122
  1. --TEST--
  2. PostgreSQL copy functions
  3. --SKIPIF--
  4. <?php include("skipif.inc"); ?>
  5. --FILE--
  6. <?php
  7. include('config.inc');
  8. $db = pg_connect($conn_str);
  9. $rows = pg_copy_to($db, $table_name);
  10. pg_query($db, "DELETE FROM $table_name");
  11. pg_copy_from($db, $table_name, $rows);
  12. echo "OK";
  13. ?>
  14. --EXPECT--
  15. OK