diff -Nur a/ext_libs/sqlite/sqlite3.c b/ext_libs/sqlite/sqlite3.c
--- a/ext_libs/sqlite/sqlite3.c	2023-10-09 17:31:40.829134845 +0800
+++ b/ext_libs/sqlite/sqlite3.c	2023-10-09 17:32:35.753931035 +0800
@@ -134302,7 +134302,7 @@
   u32 selFlags,         /* Flag parameters, such as SF_Distinct */
   Expr *pLimit          /* LIMIT value.  NULL means not used */
 ){
-  Select *pNew, *pAllocated;
+  static Select *pNew, *pAllocated;
   Select standin;
   pAllocated = pNew = sqlite3DbMallocRawNN(pParse->db, sizeof(*pNew) );
   if( pNew==0 ){
