summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorTossPig <[email protected]>2022-06-20 05:59:13 +0800
committerGitHub <[email protected]>2022-06-20 05:59:13 +0800
commitbc7f18064f4eb8c4a1d13a5fc3db47416e950dab (patch)
tree4c73a003473479a2260df2bcdec9c01b8d20cb68 /controller/PostgreSQL.cpp
parentb4cec0b4a8acb41cc1a52f24e0d423131b5b71df (diff)
fix sql
bind message supplies 17 parameters, but prepared statement "" requires 16
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index 23064c59..1fa58a92 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -1241,7 +1241,7 @@ void PostgreSQL::commitThread()
"$1, TO_TIMESTAMP($5::double precision/1000), "
"(SELECT user_id AS owner_id FROM ztc_global_permissions WHERE authorize = true AND del = true AND modify = true AND read = true LIMIT 1),"
"$2, $3, $4, TO_TIMESTAMP($5::double precision/1000), "
- "$6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, 17) "
+ "$6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) "
"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, "