We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5ae92 commit 37fb4beCopy full SHA for 37fb4be
2 files changed
.cargo/config.toml
@@ -1,4 +1,7 @@
1
[env]
2
# To use built-in math functions, this compile time flag must be set
3
# See https://www.sqlite.org/draft/lang_mathfunc.html as a reference
4
-LIBSQLITE3_FLAGS = { value = "-DSQLITE_ENABLE_MATH_FUNCTIONS", force=true }
+# According to Cargo docs this will not overwrite any env var that was already
5
+# set by the user, and this is a good thing. If the user already set some
6
+# LIBSQLITE3_FLAGS, he probably knows what he is doing.
7
+LIBSQLITE3_FLAGS = "-DSQLITE_ENABLE_MATH_FUNCTIONS"
tests/sql_test_files/it_works_sqrt.sql
@@ -0,0 +1,7 @@
+set number_three = sqrt(9.0);
+
+select 'text' as component,
+ case $number_three
+ when '3.0' then 'It works !'
+ else 'error: ' || coalesce($number_three, 'NULL')
+ end AS contents;
0 commit comments