Files
chaisql/internal/expr/functions/testdata/math_functions.sql
Jean Hadrien Chabran e556fc3048 Add functions packages support (#419)
* Add packaged functions support

* Add tests for math.floor func

* Export FunctionsTable

* Extract func stuff into its own package

* Rename stuff

* Fix tests

* Move doc package to cmd/genji

* Adjust naming, typos
2021-07-17 13:07:16 +02:00

10 lines
122 B
SQL

-- test: math.floor
> math.floor(2.3)
2.0
> math.floor(2)
2
! math.floor('a')
'floor(arg1) expects arg1 to be a number'