diff --git a/app/components/dashboard/QueryRecorder.tsx b/app/components/dashboard/QueryRecorder.tsx index 87b49c8fe3e82f0ecb6b698383aaca1ae78dfd91..5a291067020ac7fc00ec3d93110fc8706719c094 100644 --- a/app/components/dashboard/QueryRecorder.tsx +++ b/app/components/dashboard/QueryRecorder.tsx @@ -162,7 +162,8 @@ export default function QueryRecorder(props: QuerRecorderProps) { changeQueryRunning, changeRecordingState, tab.timestep, - tab.explainAnalyze + tab.explainAnalyze || + tab.inputQuery.toLowerCase().includes('explain analyze') ); const t1 = performance.now(); if (result?.error) { diff --git a/app/package.json b/app/package.json index 3189a15fb4c71a7a5310bac44abdfdc3ccedec8b..96445a063614d84b658d8e45d04b95c06139a663 100644 --- a/app/package.json +++ b/app/package.json @@ -1,7 +1,7 @@ { "name": "mysql-query-profiler", "productName": "MySQL Query Profiler", - "version": "1.0.0", + "version": "1.0.1", "description": "A profiler for MySQL queries using Electron and React", "main": "./main.prod.js", "author": { diff --git a/test/unit_tests/standard/DataProcessor.test.tsx b/test/unit_tests/standard/DataProcessor.test.ts similarity index 100% rename from test/unit_tests/standard/DataProcessor.test.tsx rename to test/unit_tests/standard/DataProcessor.test.ts diff --git a/test/unit_tests/standard/SqlAgent.test.tsx b/test/unit_tests/standard/SqlAgent.test.ts similarity index 100% rename from test/unit_tests/standard/SqlAgent.test.tsx rename to test/unit_tests/standard/SqlAgent.test.ts diff --git a/test/unit_tests/standard/memorytestdata.js b/test/unit_tests/standard/memorytestdata.ts similarity index 100% rename from test/unit_tests/standard/memorytestdata.js rename to test/unit_tests/standard/memorytestdata.ts