3
0

Fix broken ql tests

This commit is contained in:
Denis Arh
2021-03-12 09:45:43 +01:00
parent 2405ebb187
commit 1e49c2772f

View File

@@ -6,6 +6,8 @@ type (
// supported by the db
CaseInsensitiveLike(neg bool) string
}
failsafeEncoder struct{}
)
var (
@@ -17,5 +19,13 @@ var (
// only supporting one single db at the time.
//
// This will change in the future and so will the pkg/ql logic
QueryEncoder Encoder
QueryEncoder Encoder = &failsafeEncoder{}
)
func (failsafeEncoder) CaseInsensitiveLike(neg bool) string {
if neg {
return "NOT LIKE"
} else {
return "LIKE"
}
}