Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #13086

When id column has no autoincrement flag query for lastInsertId fails
on postgres because no value has been generated. Call lastInsertId only
if id is null.

Signed-off-by: Daniel Kesselberg <[email protected]>
Some implementations typehint getId to integer but default is null.

Signed-off-by: Daniel Kesselberg <[email protected]>
@rullzer rullzer merged commit 832fa63 into stable15 Jan 2, 2019
@rullzer rullzer deleted the backport/13086/stable15 branch January 2, 2019 08:15
@MorrisJobke MorrisJobke mentioned this pull request Jan 4, 2019
3 tasks
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.

3 participants