Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sipcapture: Fix primary key issues with PostgreSQL
Postgres handles zero-value auto-increment columns which are part of composite primary keys differently than MySQL. Omitting the column altogether from the INSERT statements rather than setting it to zero leads to the expected behavior on both platforms (i.e. "always try to insert a unique id"). Thanks to Jennifer Hashimoto for reporting and troubleshooting (cherry picked from commit e3be4a1)
- Loading branch information
1 parent
166bb44
commit 935fd57
Showing
1 changed file
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters