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

Update embedded SQLite3 to 3.49.0 #2181

Merged
merged 2 commits into from
Feb 7, 2025
Merged

Update embedded SQLite3 to 3.49.0 #2181

merged 2 commits into from
Feb 7, 2025

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented Feb 7, 2025

What does this implement/fix?

SQLite Release 3.49.0 On 2025-02-06

  1. Enhancements to the query planner:
    1. Improve the query-time index optimization so that it works on WITHOUT ROWID tables.
    2. Better query plans for large star-query joins. This fixes three different performance regressions that were reported on the SQLite Forum.
    3. When two or more queries have the same estimated cost, use the one with the fewer bytes per row.
  2. Enhance the iif() SQL function so that it can accept any number of arguments greater than or equal to two.
  3. Enhance the session extension so that it works on databases that make use of generated columns.
  4. Omit the SQLITE_USE_STDIO_FOR_CONSOLE compile-time option which was not implemented correctly and never worked right. In its place add the SQLITE_USE_W32_FOR_CONSOLE_IO compile-time option. This option applies to command-line tools like the CLI only, not to the SQLite core. It causes Win32 APIs to be used for console I/O instead of stdio. This option affects Windows builds only.
  5. Three new options to sqlite3_db_config(). All default "on".
    1. SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE
    2. SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE
    3. SQLITE_DBCONFIG_ENABLE_COMMENTS
  6. Replace Autotools with Autosetup for the configure script used in the precompiled amalgamation tarball. The configure script for the canonical source code was changed to Autosetup in the previous (3.48.0) release. Only the main SQLite configure script in the amalgamation tarball is changed. The (deprecated) configuration script use by TEA subdirectory of the amalgamation tarball still relies on Autotools.
  7. Various minor patches and fixes for problems seen in the 3.48.0 release.

Related issue or feature (if applicable): N/A

Pull request in docs with documentation (if applicable): N/A


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the EUPL 1.2 license
  5. I have squashed any insignificant commits. (git rebase)

Checklist:

  • The code change is tested and works locally.
  • I based my code and PRs against the repositories developmental branch.
  • I signed off all commits. Pi-hole enforces the DCO for all contributions
  • I signed all my commits. Pi-hole requires signatures to verify authorship
  • I have read the above and my PR is ready for review.

@DL6ER DL6ER requested a review from a team February 7, 2025 17:23
@DL6ER DL6ER force-pushed the update/sqlite_3.49.0 branch from 6b52655 to 1e017b3 Compare February 7, 2025 17:34
@DL6ER DL6ER merged commit de61d82 into development Feb 7, 2025
19 checks passed
@DL6ER DL6ER deleted the update/sqlite_3.49.0 branch February 7, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants