Temporary sub select fix to make filtering work on MySQL

This commit is contained in:
Tomaž Jerman
2021-08-16 09:16:07 +02:00
parent f21efd5f8d
commit cb122121f6
+3
View File
@@ -409,6 +409,9 @@ func (r *recordDatasource) baseQuery(f *report.Filter) (sqb squirrel.SelectBuild
Column(squirrel.Alias(squirrel.Expr(fmt.Sprintf(tcp, c.Name+".value")), c.Name))
}
// @todo this is temporary!!
sqb = squirrel.Select("*").FromSelect(sqb, "q_base")
// - any initial filtering we may need to do
//
// @todo better support functions and their validation.