summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 18:58:22 -0500
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-08-08 18:58:22 -0500
commit783b49e383f90ac046680a94d4491e44dcea1f6c (patch)
tree8bf13f53f8994378a0ee6045bcef21b32512e547
parentd4dc983a01973d4148c5f4344d86b9534fd61432 (diff)
downloadinfinitytier-783b49e383f90ac046680a94d4491e44dcea1f6c.tar.gz
infinitytier-783b49e383f90ac046680a94d4491e44dcea1f6c.zip
more worky less not worky
-rw-r--r--controller/PostgreSQL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 07bb5825..30b3f70d 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1087,7 +1087,7 @@ void PostgreSQL::commitThread()
"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) "
+ "$1, $2, $3, $4, TO_TIMESTAMP($5::double precision/1000), $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_modified = EXCLUDED.last_modified, mtu = EXCLUDED.mtu, "