diff options
| author | Mark Newnham <mark@newnhams.com> | 2026-03-05 19:04:47 -0700 |
|---|---|---|
| committer | Mark Newnham <mark@newnhams.com> | 2026-03-05 19:04:47 -0700 |
| commit | ffda4226b953a94a785ca3110d4bfceaf0bb95c1 (patch) | |
| tree | d2da5e3685424c3233d8583a850b2f545c57ff0f | |
| parent | 6c1c256ad918be4ceaf760e2b8e383b828dbe2b9 (diff) | |
| download | adodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.tar.gz adodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.tar.bz2 adodb-ffda4226b953a94a785ca3110d4bfceaf0bb95c1.zip | |
Added a comment about DB2 insert id
| -rw-r--r-- | drivers/adodb-db2.inc.php | 11 |
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()'); |
