Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-133439: Fix dot commands with trailing spaces are mistaken for multi-line sqlite statements in the sqlite3 command-line interface#133440
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
080d0c8
cd277f3
e2703b4
a4498ab
9b3ed39
4023fb1
b473fe9
bb0c7d9
5ec7198
caf47bc
e1ea159
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -48,18 +48,18 @@ def runsource(self, source, filename="<input>", symbol="single"): | ||
Return True if more input is needed; buffering is done automatically. | ||
Return False if input is a complete statement ready for execution. | ||
""" | ||
ifsource[0] == ".": | ||
serhiy-storchaka marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
match source[1:].strip(): | ||
serhiy-storchaka marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
case "version": | ||
print(f"{sqlite3.sqlite_version}") | ||
case "help": | ||
print("Enter SQL code and press enter.") | ||
case "quit": | ||
sys.exit(0) | ||
else: | ||
if not sqlite3.complete_statement(source): | ||
return True | ||
execute(self._cur, source) | ||
return False | ||
Uh oh!
There was an error while loading.Please reload this page.