Skip to content

SQLite built-in math functions are not available in SQLPage #937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
francesco-cattoglio opened this issue Jun 13, 2025 · 0 comments · May be fixed by #938
Open

SQLite built-in math functions are not available in SQLPage #937

francesco-cattoglio opened this issue Jun 13, 2025 · 0 comments · May be fixed by #938
Labels
bug Something isn't working

Comments

@francesco-cattoglio
Copy link
Contributor

Introduction

Many built-in mathematical functions are unavailable because the file sqlite3.c is compiled without the correct flag.
See rusqlite/rusqlite#1211 as the rationale behind the default compile settings chosen by the upstream library.

To Reproduce

Any query that uses a function from the page https://www.sqlite.org/draft/lang_mathfunc.html (such as exp, log and so on) will error out.

Expected behavior

I think that it would be a sensible default to enable this particular flag at compile time for SQLPage, since some of these functions are very useful in data manipulation.

Version information

  • Database: the built-in SQLite DB
  • SQLPage Version: 0.35.1

Additional context

I am opening a pull request with a config.toml to compile using the -DSQLITE_ENABLE_MATH_FUNCTIONS compile-time option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant