|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespgsql_copy_schema.patch (last revision 2010-04-19 23:51 UTC by cbandy at jbandy dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-20 17:59 UTC] felipe@php.net
[2010-04-20 17:59 UTC] felipe@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-04-20 17:59 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ It is not possible to include the schema when passing a table name to pg_copy_from, e.g. pg_copy_from($conn, "schema.tablename", $rows). r291312 addressed this issue for pg_copy_to, though the attached patch seems simpler. Test script: --------------- // setup pg_query($db, 'CREATE SCHEMA temp_test_schema'); pg_query($db, 'CREATE TABLE temp_test_schema.temp_test_table (a INT)'); // test pg_copy_from($db, 'temp_test_schema.temp_test_table', array('1')); // cleanup pg_query($db, 'DROP SCHEMA temp_test_schema CASCADE'); Expected result: ---------------- The row is copied without error Actual result: -------------- pg_copy_from() : Copy command failed: ERROR: relation "temp_test_schema.temp_test_table" does not exist