db2_last_insert_id may return NULL

This commit is contained in:
Sergei Morozov 2021-06-26 16:00:00 -07:00 committed by Ivan Fedorov
parent b7d2a49f02
commit 2d00eb7410
1 changed files with 2 additions and 1 deletions

View File

@ -1733,7 +1733,8 @@ function db2_get_option($resource, $option) {}
* </ul>
* @param resource $resource A valid connection resource as returned from db2_connect() or db2_pconnect().
* The value of this parameter cannot be a statement resource or result set resource.
* @return string Returns the auto generated ID of last insert query that successfully executed on this connection.
* @return string|null Returns the auto generated ID of last insert query that successfully executed on this connection
* or NULL if no ID was found.
*/
function db2_last_insert_id($resource) {}