Req #63656 [NEW]: PostgreSQL PDO methods like pgsqlCopyFromFile are undocumented
| From: | ch@php.net | Date: | Fri, 30 Nov 2012 12:06:43 +0000 |
| Subject: | Req #63656 [NEW]: PostgreSQL PDO methods like pgsqlCopyFromFile are undocumented | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9229@lists.php.net to get a copy of this message | ||
From: ch
Operating system:
PHP version: 5.4.9
Package: Documentation problem
Bug Type: Feature/Change Request
Bug description:PostgreSQL PDO methods like pgsqlCopyFromFile are undocumented
Description:
------------
Several PostgreSQL specific PDO methods are not documented although they do
work fine.
Although PDO aims to hide database specific features behind a common API,
sometimes one simply wants to use certain features and for this reason they
should not be hidden but rather documented (with a proper warning).
php5-5.4.4$ grep -B2 PHP_METHOD ext/pdo_pgsql/pgsql_driver.c
/* {{{ proto string PDO::pgsqlCopyFromArray(string $table_name , array
$rows [, string $delimiter [, string $null_as ] [, string $fields])
Returns true if the copy worked fine or false if error */
static PHP_METHOD(PDO, pgsqlCopyFromArray)
--
/* {{{ proto string PDO::pgsqlCopyFromFile(string $table_name , string
$filename [, string $delimiter [, string $null_as ] [, string $fields])
Returns true if the copy worked fine or false if error */
static PHP_METHOD(PDO, pgsqlCopyFromFile)
--
/* {{{ proto string PDO::pgsqlCopyToFile(string $table_name , $filename,
[string $delimiter [, string $null_as [, string $fields]]])
Returns true if the copy worked fine or false if error */
static PHP_METHOD(PDO, pgsqlCopyToFile)
--
/* {{{ proto string PDO::pgsqlCopyToArray(string $table_name , [string
$delimiter [, string $null_as [, string $fields]]])
Returns true if the copy worked fine or false if error */
static PHP_METHOD(PDO, pgsqlCopyToArray)
--
/* {{{ proto string PDO::pgsqlLOBCreate()
Creates a new large object, returning its identifier. Must be called
inside a transaction. */
static PHP_METHOD(PDO, pgsqlLOBCreate)
--
/* {{{ proto resource PDO::pgsqlLOBOpen(string oid [, string mode = 'rb'])
Opens an existing large object stream. Must be called inside a
transaction. */
static PHP_METHOD(PDO, pgsqlLOBOpen)
--
/* {{{ proto bool PDO::pgsqlLOBUnlink(string oid)
Deletes the large object identified by oid. Must be called inside a
transaction. */
static PHP_METHOD(PDO, pgsqlLOBUnlink)
--
Edit bug report at https://bugs.php.net/bug.php?id=63656&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63656&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63656&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63656&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63656&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63656&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63656&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63656&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63656&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63656&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63656&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63656&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63656&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63656&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63656&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63656&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63656&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63656&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63656&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63656&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63656&r=mysqlcfg