From dc5ed4f2ed10751f772a212c148ef93adeba06d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail?= Date: Wed, 6 Nov 2024 21:14:03 +0300 Subject: [PATCH] The word "key" is a reserved word in MySQL. --- management/server/sql_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/sql_store.go b/management/server/sql_store.go index 930b1ce90..6b1defd64 100644 --- a/management/server/sql_store.go +++ b/management/server/sql_store.go @@ -36,7 +36,7 @@ import ( const ( storeSqliteFileName = "store.db" idQueryCondition = "id = ?" - keyQueryCondition = "key = ?" + keyQueryCondition = "`key` = ?" accountAndIDQueryCondition = "account_id = ? and id = ?" accountIDCondition = "account_id = ?" peerNotFoundFMT = "peer %s not found"