From 78a5919daee394f7a0fbd3d56f007e05bcd0cd22 Mon Sep 17 00:00:00 2001 From: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com> Date: Wed, 10 Sep 2025 08:23:59 +0530 Subject: [PATCH] fix: dashboard search text for variables SQL query (#8342) --- web/src/components/dashboards/VariablesValueSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/dashboards/VariablesValueSelector.vue b/web/src/components/dashboards/VariablesValueSelector.vue index 6b5f6bb148..b487756eca 100644 --- a/web/src/components/dashboards/VariablesValueSelector.vue +++ b/web/src/components/dashboards/VariablesValueSelector.vue @@ -1459,7 +1459,7 @@ export default defineComponent({ let dummyQuery: string; if (searchText) { - dummyQuery = `SELECT ${timestamp_column} FROM '${variableObject.query_data.stream}' WHERE str_match(${variableObject.query_data.field}, ${escapeSingleQuotes(searchText.trim())})`; + dummyQuery = `SELECT ${timestamp_column} FROM '${variableObject.query_data.stream}' WHERE str_match(${variableObject.query_data.field}, '${escapeSingleQuotes(searchText.trim())}')`; } else { dummyQuery = `SELECT ${timestamp_column} FROM '${variableObject.query_data.stream}'`; }