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

merge: Ignore the user's ~/.sqliterc file, if any #1608

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

tsibley
Copy link
Member

@tsibley tsibley commented Aug 27, 2024

By default that file is evaluated by the SQLite CLI when it starts, and the user may have commands in it that affect default CLI behaviour we rely upon, such as .mode. Since it's hard to know exactly how to reset to a "pristine" settings state, avoid the user's rc file entirely.

Resolves: #1603

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.02%. Comparing base (d662698) to head (d2589af).
Report is 106 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1608   +/-   ##
=======================================
  Coverage   71.02%   71.02%           
=======================================
  Files          79       79           
  Lines        8256     8256           
  Branches     2003     2003           
=======================================
  Hits         5864     5864           
  Misses       2101     2101           
  Partials      291      291           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@victorlin victorlin left a comment

Choose a reason for hiding this comment

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

Works for me on sqlite3 v3.39.5 (can no longer repro #1603)

@tsibley tsibley force-pushed the trs/merge/no-sqliterc branch from 6397122 to 39c96d0 Compare August 28, 2024 18:48
By default that file is evaluated by the SQLite CLI when it starts, and
the user may have commands in it that affect default CLI behaviour we
rely upon, such as .mode.  Since it's hard to know exactly how to reset
to a "pristine" settings state, avoid the user's rc file entirely.

Resolves: <#1603>
@tsibley tsibley force-pushed the trs/merge/no-sqliterc branch from 39c96d0 to d2589af Compare August 28, 2024 18:52
@tsibley tsibley merged commit 47c83e0 into master Aug 28, 2024
27 checks passed
@tsibley tsibley deleted the trs/merge/no-sqliterc branch August 28, 2024 19:02
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.

merge: Uncaught error with user-defined .sqliterc
3 participants