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

ISQL does not allow to quit on Ctrl-C under LINUX after establishing successful connection to database [CORE3665] #4015

Closed
firebird-automations opened this issue Nov 16, 2011 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Pressing Ctrl-C in ISQL has effect only before any connection is made.

uname -a
Linux firebird 2.6.33.3-85.fc13.x86_64 #⁠1 SMP Thu May 6 18:09:49 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

[firebird@firebirdG ~]$ isql -z
ISQL Version: LI-V2.5.1.26353 Firebird 2.5

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Ctrl-C is used in isql to cancel active request to database. With no active request nothing is done. To cancel program please use ctrl-D.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

I don't agree. If it's waiting for input, Ctrl+C must close ISQL rolling back the current transactions.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

One problem with it. Imagine a case - user waits for a long request to complete, gets tired waiting, presses ctrl-C - but at this moment request completes. Instead of returing to SQL prompt he returns to OS with last transaction rolled back. And if first is not too dangerous, second can be very much undesired.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

It's how it's working in Windows AFAIR, and I don't think it's a real problem.

And if that's not desired, then Ctrl+C must not be used for query cancellation, as it main task in command line application is to abort.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants