#34719 [NEW]: Add proposal about the pg_query function documentation
| From: | bouchon at alussinan dot org | Date: | Mon, 03 Oct 2005 15:08:49 +0000 |
| Subject: | #34719 [NEW]: Add proposal about the pg_query function documentation | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969370429@lists.php.net to get a copy of this message | ||
From: bouchon at alussinan dot org
Operating system:
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Add proposal about the pg_query function documentation
Description:
------------
Hello,
I would like to propose to add a short explanation inside the
documentation of the pg_query function, about transactions :
##
Note that the pg_query() function can also take several queries embeded
inside one transaction block.
Example :
$SQLQuery = 'BEGIN;';
$SQLQuery.= 'INSERT INTO a (a,b) VALUES (1,2);';
$SQLQuery.= 'INSERT INTO b (ref_b,c) VALUES (2,5);';
$SQLQuery.= 'COMMIT;';
$HandleResults = pg_query($SQLQuery);
The essential point of a transaction is that it bundles multiple steps
into a single, all-or-nothing operation. You can get more informations
about transaction on
http://www.postgresql.org/docs/8.0/interactive/tutorial-transactions.html
##
I think that this feature should be mentionned inside the pg_query()
function documentation. If this proposal is accepted, feel free to rewrite
it in a better english.
Kind regards,
--
Bruno BAGUETTE - bouchon@alussinan.org
(hardly filtered mail, but I read answers on the newsgroup)
--
Edit bug report at http://bugs.php.net/?id=34719&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34719&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34719&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34719&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34719&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34719&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34719&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34719&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34719&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34719&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34719&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34719&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34719&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34719&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34719&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34719&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34719&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34719&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34719&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34719&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34719&r=mysqlcfg