Skip to content

Commit 6d66ac9

Browse files
authored
SH-437 fix quote escaping for selects (#1964)
1 parent 9433eb7 commit 6d66ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/sql_query_series.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const operatorNotIn = " NOT IN "
1717
type filterOperator [2]string // operator at [0], separator at [1]
1818
var filterOperatorIn = filterOperator{operatorIn, " OR "}
1919
var filterOperatorNotIn = filterOperator{operatorNotIn, " AND "}
20-
var escapeReplacer = strings.NewReplacer(`'`, `\'`)
20+
var escapeReplacer = strings.NewReplacer(`'`, `\'`, `\`, `\\`)
2121

2222
func (b *queryBuilder) buildSeriesQuery(lod data_model.LOD) (*seriesQuery, error) {
2323
q := &seriesQuery{

0 commit comments

Comments
 (0)