Skip to content

Commit

Permalink
Merge pull request #153 from Altinity/master
Browse files Browse the repository at this point in the history
Version 1.9.3 Update
  • Loading branch information
gimm3fuel authored Oct 18, 2019
2 parents 0d0e76f + 3aeb0ce commit 995b21b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.9.3 (2019-10-18)

## Fixes:
* Ad Hoc Filters improvements for complex usage

# 1.9.2 (2019-10-10)

## Fixes:
Expand Down
2 changes: 1 addition & 1 deletion dist/module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"url": "https://github.com/Vertamedia/clickhouse-grafana"
}
],
"version": "1.9.2"
"version": "1.9.3"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vertamedia-clickhouse",
"version": "1.9.0",
"version": "1.9.3",
"description": "ClickHouse datasource for Grafana",
"scripts": {
"build:prod": "webpack --config webpack.config.prod.js",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"url": "https://github.com/Vertamedia/clickhouse-grafana"
}
],
"version": "1.9.2"
"version": "1.9.3"
}
}
3 changes: 2 additions & 1 deletion src/sql_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ export default class SqlQuery {
return
}
let operator = SqlQuery.clickhouseOperator(af.operator);
let cond = parts[2] + " " + operator + " " + ("'" + af.value + "'");
let cond = parts[2] + " " + operator + " "
+ ((af.value.indexOf("'") > -1 || af.value.indexOf(", ") > -1) ? af.value : "'" + af.value + "'");
adhocCondition.push(cond);
if (ast.where.length > 0) {
// OR is not implemented
Expand Down

0 comments on commit 995b21b

Please sign in to comment.