From 1a7668b73dfa3dbbbd2837e5b028f0548624717d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Mon, 26 Jan 2026 12:27:29 +0100 Subject: [PATCH] fix: SQLite3 server support for MySQL client '8.1.0' For more details check commit #ecf4f69. --- src/SQLite3_Server.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SQLite3_Server.cpp b/src/SQLite3_Server.cpp index 7043e142e..21670d2e7 100644 --- a/src/SQLite3_Server.cpp +++ b/src/SQLite3_Server.cpp @@ -627,6 +627,14 @@ void SQLite3_Server_session_handler(MySQL_Session* sess, void *_pa, PtrSize_t *p goto __run_query; } + // MySQL client check command for dollars quote support, starting at version '8.1.0'. See #4300. + if (!strncasecmp("SELECT $$", query_no_space, strlen("SELECT $$"))) { + pair err_info { get_dollar_quote_error(mysql_thread___server_version) }; + GloSQLite3Server->send_MySQL_ERR(&sess->client_myds->myprot, const_cast(err_info.second)); + run_query=false; + goto __run_query; + } + if (strncasecmp("SHOW ", query_no_space, 5)) { goto __end_show_commands; // in the next block there are only SHOW commands }