member ip inserts DO NOTHING on conflict

This commit is contained in:
Grant Limberg 2020-03-04 09:45:45 -08:00
parent f6026f94a5
commit 0d42108254
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

View File

@ -989,7 +989,7 @@ void PostgreSQL::commitThread()
};
res = PQexecParams(conn,
"INSERT INTO ztc_member_ip_assignment (member_id, network_id, address) VALUES ($1, $2, $3)",
"INSERT INTO ztc_member_ip_assignment (member_id, network_id, address) VALUES ($1, $2, $3) ON CONFLICT (network_id, member_id, address) DO NOTHING",
3,
NULL,
v3,