-
Notifications
You must be signed in to change notification settings - Fork 261
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
sqlite_version()
SQL function panics
#560
Labels
Comments
The error is happening here: Insn::Copy {
src_reg,
dst_reg,
amount,
} => {
for i in 0..=*amount {
state.registers[*dst_reg + i] = state.registers[*src_reg + i].clone();
}
state.pc += 1;
} removing EDIT: I founded the error! It is in the expression translation. I gonna add a test for this and open a PR. |
penberg
added a commit
that referenced
this issue
Dec 27, 2024
#560 Changes to `translate_expr` function: * [`core/translate/expr.rs`](diffhunk://#diff- 371865d5d7b8bcaed649413c687492e61e94f21387cd9b2c47d989a033888c8bL1558- R1560): Changed the `amount` parameter in the `Insn::Copy` instruction from `1` to `0`. Enhancements to the testing framework: * [`testing/scalar-functions.test`](diffhunk://#diff- a046d58ab24eee8207f0ce3199f8d0a609edcef9c24b8ed7f242f7a60e6c1e61R812- R815): Added a new test `do_execsql_test_regex` to validate that the `sqlite_version` function returns a valid output. * [`testing/tester.tcl`](diffhunk://#diff- 316cca92d85df3f78558cc3e60d7420c1fd19a23ecf2bbea534db93ab08ea3ecR29- R45): Introduced a new procedure `do_execsql_test_regex` to support regex-based validation of SQL outputs. Closes #561
Fixed by #561 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: