rel8 icon indicating copy to clipboard operation
rel8 copied to clipboard

logBase generates invalid sql

Open abigailalice opened this issue 1 year ago • 0 comments

I recently noticed attempting to use the logBase function causes an error with function log(real, real) does not exist or function log(double precision, double precision) does not exist, depending on whether I'm using Expr Float or Expr Double. This link seems to suggest the binary log function is only defined for numeric, though I'm not sure what (if any) Haskell type that would correspond to.

logBase should probably be implemented as log x / log b for the standard types.

abigailalice avatar Apr 26 '23 02:04 abigailalice