mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
Revert "Merge 'Add support for sqlite_version() scalar function' from Kim Seon Woo"
This reverts commite365c12ce0
, reversing changes made to21bd1a961e
. The pull request broke some tests: ``` thread 'main' panicked at core/vdbe/mod.rs:1713:72: index out of bounds: the len is 3 but the index is 3 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace while executing "exec {*}$command" (procedure "evaluate_sql" line 3) invoked from within "evaluate_sql $sqlite_exec $sql" (procedure "run_test" line 2) invoked from within "run_test $::sqlite_exec $combined_sql $combined_expected_output" (procedure "do_execsql_test" line 5) invoked from within "do_execsql_test sqlite_version { SELECT sqlite_version(); } {3.46.1}" (file "./testing/scalar-functions.test" line 434) invoked from within "source $testdir/scalar-functions.test" (file "./testing/all.test" line 16) make: *** [Makefile:59: test-compat] Error 1 ```
This commit is contained in:
parent
e365c12ce0
commit
9bbfdab5fa
8 changed files with 12 additions and 72 deletions
|
@ -65,7 +65,6 @@ pub enum ScalarFunc {
|
|||
Time,
|
||||
Unicode,
|
||||
Quote,
|
||||
SqliteVersion,
|
||||
UnixEpoch,
|
||||
}
|
||||
|
||||
|
@ -97,7 +96,6 @@ impl ToString for ScalarFunc {
|
|||
ScalarFunc::Time => "time".to_string(),
|
||||
ScalarFunc::Unicode => "unicode".to_string(),
|
||||
ScalarFunc::Quote => "quote".to_string(),
|
||||
ScalarFunc::SqliteVersion => "sqlite_version".to_string(),
|
||||
ScalarFunc::UnixEpoch => "unixepoch".to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +160,6 @@ impl Func {
|
|||
"time" => Ok(Func::Scalar(ScalarFunc::Time)),
|
||||
"unicode" => Ok(Func::Scalar(ScalarFunc::Unicode)),
|
||||
"quote" => Ok(Func::Scalar(ScalarFunc::Quote)),
|
||||
"sqlite_version" => Ok(Func::Scalar(ScalarFunc::SqliteVersion)),
|
||||
"json" => Ok(Func::Json(JsonFunc::JSON)),
|
||||
"unixepoch" => Ok(Func::Scalar(ScalarFunc::UnixEpoch)),
|
||||
_ => Err(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue