Skip to content

db2_last_insert_id may return NULL#1158

Merged
Ivan Fedorov (isfedorov) merged 1 commit into
JetBrains:masterfrom
morozov:db2-last-insert-id-null
Jun 27, 2021
Merged

db2_last_insert_id may return NULL#1158
Ivan Fedorov (isfedorov) merged 1 commit into
JetBrains:masterfrom
morozov:db2-last-insert-id-null

Conversation

@morozov

Copy link
Copy Markdown
Contributor

See the source code:

/* Returning last insert ID (if any), or otherwise NULL */
if (last_id[0] != '\0') {
    ZEND_RETURN_STRING(last_id, 0);
} else {
    RETURN_NULL();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants