You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding CASTs doesn't seem to help with that, the affinity is lost by the aggregate function.
To fix that, we'd probably have to parse the SQL and follow the type-affinity in the expression AST. Possible but work.
The text was updated successfully, but these errors were encountered:
helje5
changed the title
SQLite looses type affinity when using aggregates, workaround that
SQLite Views loose type affinity w/ aggregates, workaround that
Aug 17, 2022
As soon as an aggregate function is used, SQLite seems to loose the type affinity of the expression, e.g.:
Results in:
Which isn't great.
Adding
CAST
s doesn't seem to help with that, the affinity is lost by the aggregate function.To fix that, we'd probably have to parse the SQL and follow the type-affinity in the expression AST. Possible but work.
The text was updated successfully, but these errors were encountered: