@unlink($f);
}
?>
---EXPECT--
+--EXPECTF--
Preparing test file and array for CopyFrom tests
Testing pgsqlCopyFromArray() with default parameters
bool(true)
NULL
}
Testing pgsqlCopyFromArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
Testing pgsqlCopyFromFile() with default parameters
bool(true)
array(6) {
NULL
}
Testing pgsqlCopyFromFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
Testing pgsqlCopyFromFile() with non existing file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file
@unlink($filename);
}
?>
---EXPECT--
+--EXPECTF--
Preparing test table for CopyTo tests
Testing pgsqlCopyToArray() with default parameters
array(3) {
"
}
Testing pgsqlCopyToArray() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
Testing pgsqlCopyToFile() with default parameters
bool(true)
0 test insert 0 \N
1;NULL
2;NULL
Testing pgsqlCopyToFile() with error
-Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist
+Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
Testing pgsqlCopyToFile() to unwritable file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing