From 25a7658b9a73a47bcaddbb0173c6cacd2ec65e03 Mon Sep 17 00:00:00 2001 From: Umar Farooq Ghumman Date: Mon, 12 Aug 2024 12:09:29 -0500 Subject: [PATCH] fixed pattern search for splitting queries --- project/ui/qprof_main.ipynb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/ui/qprof_main.ipynb b/project/ui/qprof_main.ipynb index 78b27a2c..7891765e 100644 --- a/project/ui/qprof_main.ipynb +++ b/project/ui/qprof_main.ipynb @@ -576,8 +576,9 @@ "\n", "# Split the queries\n", "def query_list(sql_queries: str):\n", - " # Split the input string by \";\"\n", - " queries = [query.strip() for query in sql_queries.split(';') if query.strip()]\n", + " # Regular expression to match semicolons outside of quotes\n", + " pattern = r'''(?