summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Newnham <mark@newnhams.com>2026-03-05 19:04:47 -0700
committerMark Newnham <mark@newnhams.com>2026-03-05 19:04:47 -0700
commitffda4226b953a94a785ca3110d4bfceaf0bb95c1 (patch)
treed2da5e3685424c3233d8583a850b2f545c57ff0f
parent6c1c256ad918be4ceaf760e2b8e383b828dbe2b9 (diff)
downloadadodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.tar.gz
adodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.tar.bz2
adodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.zip
Added a comment about DB2 insert id
-rw-r--r--drivers/adodb-db2.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/adodb-db2.inc.php b/drivers/adodb-db2.inc.php
index 709a2f2a..4e350f18 100644
--- a/drivers/adodb-db2.inc.php
+++ b/drivers/adodb-db2.inc.php
@@ -112,6 +112,17 @@ class ADODB_db2 extends ADOConnection {
function __construct() {}
+ /**
+ * Return the id of the last row that has been inserted in a table
+ * DB2 retains this value over all subsequent non-insert executions
+ * even an execution of an insert on a table without an auto-increment
+ * column will not change it
+ *
+ * @param string $table Not used in DB2
+ * @param string $column Not userd in DB2
+ *
+ * @return int|false
+ */
protected function _insertID($table = '', $column = '')
{
return ADOConnection::GetOne('VALUES IDENTITY_VAL_LOCAL()');