Different Expr type for different backends - Count & Max return type #27
Labels
expression-level
Change related to database expressions `Col s a`
pg
Related with the PG backend
sqlite3
Related with the SQLite3 backend
pg returns the result of the COUT/MAX as String, because of potential precision loss.
While other backends can return
Int
there (and losing some digits if the result does not fit theInt
range)It is useful to have the expression of type
Col s Int
rather thanCol s String
e.g. comparison on strings is different than on ints.Potential solution:
The text was updated successfully, but these errors were encountered: