-
Notifications
You must be signed in to change notification settings - Fork 147
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
Re-execute the previous query #73
Comments
Have you tried up-arrow? |
I think the OP may be referring specifically to multi-line queries. jline (and thus sqlline) is not multi-line command-aware, so "SELECT \n CURRENT_TIMESTAMP;" followed by up-arrow will only re-populate "CURRENT_TIMESTAMP;" on the command line.
It's been a long-time irritation for me, but I don't think sqlline can address it without a fix on the jline side.
… On Apr 6, 2018, at 19:07, Julian Hyde ***@***.***> wrote:
Have you tried up-arrow?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Need to upgrade to a newer JLine (see jline/jline3#36 ) |
Looks like update of SQLine JLine 2.14.4 to 3.9.0 version is not trivial task and requires a good knowledge of SQLine and JLine. |
Currently from time to time I'm doing some activity on moving to use to jline3 and this and some other features seems to be working there [1]. However there are still several issues like support jline2 history files, non-working jline's |
Added implementation of |
Fixed in bf495f9, PR #155. Thanks @snuyanzin! |
Wish there was a way to re-run the previous query. Can be helpful with multi-line queries that cannot easily be cut-n-paste.
Even better - specify an offset, like running the query before the last, or before that, like:
!rerun (same as !rerun-1)
!rerun-2
!rerun-3
The text was updated successfully, but these errors were encountered: