Skip to content
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

Make possible to perform extra consistency checks #39

Merged
merged 36 commits into from
Mar 15, 2024
Merged

Conversation

gwenn
Copy link
Owner

@gwenn gwenn commented Jan 2, 2024

No description provided.

@gwenn
Copy link
Owner Author

gwenn commented Jan 9, 2024

Fixed:

CREATE TABLE IF NOT EXISTS transactions (
      debit REAL,
      credit REAL,
      amount REAL GENERATED ALWAYS AS (ifnull(credit, 0.0) -ifnull(debit, 0.0))
  ) STRICT;

fails to pass extra checks because of this:
https://github.com/sqlite/sqlite/blob/e452bf40a14aca57fd9047b330dff282f3e4bbcc/src/build.c#L1511-L1514

@gwenn gwenn marked this pull request as ready for review March 15, 2024 19:59
@gwenn gwenn merged commit 9b88152 into master Mar 15, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant