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 SQLite to 3.42.0 #1560

Merged
merged 2 commits into from
May 20, 2023
Merged

Update embedded SQLite to 3.42.0 #1560

merged 2 commits into from
May 20, 2023

Conversation

DL6ER
Copy link
Member

@DL6ER DL6ER commented May 18, 2023

What does this implement/fix?

Pi-hole will benefit from points 5, 8, and 14 below.

SQLite Release 3.42.0 On 2023-05-16

  1. Add the FTS5 secure-delete command. This option causes all forensic traces to be removed from the FTS5 inverted index when content is deleted.
  2. Enhance the JSON SQL functions to support JSON5 extensions.
  3. The SQLITE_CONFIG_LOG and SQLITE_CONFIG_PCACHE_HDRSZ calls to sqlite3_config() are now allowed to occur after sqlite3_initialize().
  4. New sqlite3_db_config() options: SQLITE_DBCONFIG_STMT_SCANSTATUS and SQLITE_DBCONFIG_REVERSE_SCANORDER.
  5. Query planner improvements:
    1. Enable the "count-of-view" optimization by default.
    2. Avoid computing unused columns in subqueries.
    3. Improvements to the push-down optimization.
  6. Enhancements to the CLI:
    1. Add the --unsafe-testing command-line option. Without this option, some dot-commands (ex: ".testctrl") are now disabled because those commands that are intended for testing only and can cause malfunctions misused.
    2. Allow commands ".log on" and ".log off", even in --safe mode.
    3. "--" as a command-line argument means all subsequent arguments that start with "-" are interpreted as normal non-option argument.
    4. Magic parameters ":inf" and ":nan" bind to floating point literals Infinity and NaN, respectively.
    5. The --utf8 command-line option omits all translation to or from MBCS on the Windows console for interactive sessions, and sets the console code page for UTF-8 I/O during such sessions. The --utf8 option is a no-op on all other platforms.
  7. Add the ability for application-defined SQL functions to have the same name as join keywords: CROSS, FULL, INNER, LEFT, NATURAL, OUTER, or RIGHT.
  8. Enhancements to PRAGMA integrity_check:
    1. Detect and raise an error when a NaN value is stored in a NOT NULL column.
    2. Improved error message output identifies the root page of a b-tree when an error is found within a b-tree.
  9. Allow the session extension to be configured to capture changes from tables that lack an explicit ROWID.
  10. Added the subsecond modifier to the date and time functions.
  11. Negative values passed into sqlite3_sleep() are henceforth interpreted as 0.
  12. The maximum recursion depth for JSON arrays and objects is lowered from 2000 to 1000.
  13. Extended the built-in printf() function so the comma option now works with floating-point conversions in addition to integer conversions.
  14. Miscellaneous bug fixes and performance optimizations

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 added the SQLite3 label May 18, 2023
@DL6ER DL6ER requested a review from a team May 18, 2023 08:29
@DL6ER DL6ER added the PR: Approval Required Open Pull Request, needs approval label May 20, 2023
@DL6ER DL6ER merged commit 9dd3d77 into development May 20, 2023
@DL6ER DL6ER deleted the update/sqlite_3.42.0 branch May 20, 2023 15:36
@DL6ER DL6ER mentioned this pull request May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Approval Required Open Pull Request, needs approval SQLite3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants