[#6860] support multiline cast expressions in view collections

This commit is contained in:
Azat Ismagilov authored and GitHub committed 2025-05-20 19:40:49 +03:00
1 parent 6e9a9489a7
commit 568c63b29f
2 files changed
+33 -1

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ func defaultViewField(name string) Field {
}
}
var castRegex = regexp.MustCompile(`(?i)^cast\s*\(.*\s+as\s+(\w+)\s*\)$`)
var castRegex = regexp.MustCompile(`(?is)^cast\s*\(.*\s+as\s+(\w+)\s*\)$`)
func parseQueryToFields(app App, selectQuery string) (map[string]*queryField, error) {
p := new(identifiersParser)