|
|
|
|
@ -1084,13 +1084,13 @@ void PostgreSQL::commitThread()
|
|
|
|
|
|
|
|
|
|
PGresult *res = PQexecParams(conn, |
|
|
|
|
"INSERT INTO ztc_network (id, controller_id, capabilities, enable_broadcast, " |
|
|
|
|
"last_updated, mtu, multicast_limit, name, private, " |
|
|
|
|
"last_modified, mtu, multicast_limit, name, private, " |
|
|
|
|
"remote_trace_level, remote_trace_target, rules, rules_source, " |
|
|
|
|
"tags, v4_assign_mode, v6_assign_mode) VALUES (" |
|
|
|
|
"$1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) " |
|
|
|
|
"ON CONFLICT (id) DO UPDATE set controller_id = EXCLUDED.controller_id, " |
|
|
|
|
"capabilities = EXCLUDED.capabilities, enable_broadcast = EXCLUDED.enable_broadcast, " |
|
|
|
|
"last_updated = EXCLUDED.last_updated, mtu = EXCLUDED.mtu, " |
|
|
|
|
"last_modified = EXCLUDED.last_modified, mtu = EXCLUDED.mtu, " |
|
|
|
|
"multicast_limit = EXCLUDED.multicast_limit, name = EXCLUDED.name, " |
|
|
|
|
"private = EXCLUDED.private, remote_trace_level = EXCLUDED.remote_trace_level, " |
|
|
|
|
"remote_trace_target = EXCLUDED.remote_trace_target, rules = EXCLUDED.rules, " |
|
|
|
|
|