Skip to content

Fixed required properties validation in SQLTester - #37

Open
yureiblack wants to merge 1 commit into
sqlite:masterfrom
yureiblack:valid_branch
Open

yureiblack wants to merge 1 commit into
sqlite:masterfrom
yureiblack:valid_branch

Conversation

@yureiblack

Copy link
Copy Markdown

Summary of Fixes

1. Removed Unconditional Early Return Blocking Validation

  • Removed the if (true) return false; statement that was preventing
    the #checkRequiredProperties() method from executing its validation logic.
  • This ensures that required property checks are no longer skipped.

2. Added Missing break in INCRVACUUM Switch Case

  • Added the missing break statement to prevent fall-through into the
    default case.
  • This fixes potential logic issues when the INCRVACUUM property is used.

Result

These changes ensure that all required properties —
RECURSIVE_TRIGGERS, TEMPSTORE_FILE, TEMPSTORE_MEM, AUTOVACUUM, and INCRVACUUM —
are now properly validated and applied within the test scripts.

sqlite pushed a commit that referenced this pull request Apr 11, 2026
%#37;.  This avoids lots of quoting problems when trying to specify prompt
strings in various programming languages and shells.

FossilOrigin-Name: e7e6ecc45dfe1a163d259be26877bd7e528ce154e73b3ca8ab7edc5aa94d2d02
sqlite pushed a commit that referenced this pull request Apr 12, 2026
…racter,

since % and just about every other punctuation character is special to
cmd.exe, batch files, and nmake, on Windows.

FossilOrigin-Name: 79a8d3edf8207d72f0c4650272ee239a1c7783a07f907fbf0cf5a7ad99b27a2a
case "INCRVACUUM":
tester.appendDbInitSql("pragma auto_vacuum=incremental;");
++nOk;
break;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay, but i'm only just now seeing this. The proposed patch does not change any behavior: the fall-through case runs directly into a break. Nonetheless, this has been applied upstream because it has the potential to confuse someone or break during future refactoring:

https://sqlite.org/src/info/a6351d0413

For future reference: this project does not accept PRs and we literally ignore all PRs posted to github (it was just an accident that i managed to see this one). Please post such things to https://sqlite.org/bugs.

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.

2 participants