diff --git a/jmeter-java-dsl-jdbc/src/main/java/us/abstracta/jmeter/javadsl/jdbc/DslJdbcSampler.java b/jmeter-java-dsl-jdbc/src/main/java/us/abstracta/jmeter/javadsl/jdbc/DslJdbcSampler.java index 60e76283..11e0f851 100644 --- a/jmeter-java-dsl-jdbc/src/main/java/us/abstracta/jmeter/javadsl/jdbc/DslJdbcSampler.java +++ b/jmeter-java-dsl-jdbc/src/main/java/us/abstracta/jmeter/javadsl/jdbc/DslJdbcSampler.java @@ -396,7 +396,7 @@ private QueryType getQueryType() { private static QueryType solveQueryType(String query, boolean hasParams) { String queryType = query.trim(); - if (query.isEmpty()) { + if (query.isEmpty() || query.matches("\\$\\{.*}")) { return null; } queryType = queryType.substring(0, queryType.indexOf(" ")).toLowerCase(Locale.US);