Merge pull request #1701 from tossp/sql2

fix sql
This commit is contained in:
Grant Limberg 2022-06-19 18:09:28 -07:00 committed by GitHub
commit caf8b15f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1358,7 +1358,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, "