-
Notifications
You must be signed in to change notification settings - Fork 177
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
WASM ABI: insert
-> datastore_insert_bsatn
& impl new semantics
#1639
Conversation
/// - `BSATN_DECODE_ERROR`, when `row` cannot be decoded to a `ProductValue`. | ||
/// typed at the `ProductType` the table's schema specifies. | ||
/// - `UNIQUE_ALREADY_EXISTS`, when inserting `row` would violate a unique constraint. | ||
/// - `SCHEDULE_AT_DELAY_TOO_LONG`, when the delay specified in the row was too long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE TO SELF: This is different from the proposal, but also necessary. Add to proposal once impl work is done.
/// # Traps | ||
/// | ||
/// Traps if: | ||
/// - `row_len_ptr` is NULL or `row_len` is not in bounds of WASM memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE TO SELF: row_len_ptr
is different from the proposal, but also necessary. Add to proposal once impl work is done.
Reviewed both Rust and C# on this one; aside from one minor issue above, the rest looks good. |
e1269ee
to
11da884
Compare
556db01
to
dc305c2
Compare
6805083
to
4a07054
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve the changes to the trait.rs file.
Description of Changes
Rename
insert
todatastore_insert_bsatn
and impl the new semantics wrt. auto-inc columns.Also, fix the semantics when multiple sequences exist on a table.
cc #1460
Fixes #1640