From b9cb21a241f3720c90fe296d42a489ebea3fc1ca Mon Sep 17 00:00:00 2001 From: Matthias Crauwels Date: Thu, 8 Oct 2020 11:28:16 +0200 Subject: [PATCH] fix for #3095 (#3096) --- lib/ProxySQL_Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProxySQL_Config.cpp b/lib/ProxySQL_Config.cpp index aeca63411..250c04784 100644 --- a/lib/ProxySQL_Config.cpp +++ b/lib/ProxySQL_Config.cpp @@ -387,7 +387,7 @@ int ProxySQL_Config::Read_Restapi_from_configfile() { int i; int rows=0; admindb->execute("PRAGMA foreign_keys = OFF"); - char *q=(char *)"INSERT OR REPLACE INTO restapi VALUES (%d, %d, %d, '%s', '%s', '%s', '%s')"; + char *q=(char *)"INSERT OR REPLACE INTO restapi_routes VALUES (%d, %d, %d, '%s', '%s', '%s', '%s')"; for (i=0; i< count; i++) { const Setting &route = routes[i]; int id;