From 0d4210825497aa6293030846513312ac8b6c297b Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 4 Mar 2020 09:45:45 -0800 Subject: [PATCH] member ip inserts DO NOTHING on conflict --- controller/PostgreSQL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index 2be90f448..6978bef35 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -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,