summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2014-04-15 17:28:05 +0200
committerDamien Regad <dregad@mantisbt.org>2014-04-16 02:48:06 +0200
commit69487419595e8c587a7ec02230f3518f838a6456 (patch)
treed12385f37e47c3fbcaa63fc32a10bdcfafa6972e /drivers
parente4563200ccba0982807695d7b4cd2ace4f4e838c (diff)
downloadadodb-69487419595e8c587a7ec02230f3518f838a6456.tar.gz
adodb-69487419595e8c587a7ec02230f3518f838a6456.tar.bz2
adodb-69487419595e8c587a7ec02230f3518f838a6456.zip
PHPdoc for _insertid() function
Diffstat (limited to 'drivers')
-rw-r--r--drivers/adodb-postgres9.inc.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/adodb-postgres9.inc.php b/drivers/adodb-postgres9.inc.php
index f2f5978c..e0434c58 100644
--- a/drivers/adodb-postgres9.inc.php
+++ b/drivers/adodb-postgres9.inc.php
@@ -19,8 +19,16 @@ class ADODB_postgres9 extends ADODB_postgres7
{
var $databaseType = 'postgres9';
- // Don't use OIDs, as they typically won't be there, and
- // they're not what the application wants back, anyway.
+ /**
+ * Retrieve last inserted ID
+ * Don't use OIDs, since as per {@link http://php.net/function.pg-last-oid php manual }
+ * they won't be there in Postgres 8.1
+ * (and they're not what the application wants back, anyway).
+ * @param string $table
+ * @param string $column
+ * @return int last inserted ID for given table/column, or the most recently
+ * returned one if $table or $column are empty
+ */
function _insertid($table,$column)
{
return empty($table) || empty($column)