-
Notifications
You must be signed in to change notification settings - Fork 148
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
!dropall doesn't work in master branch #248
Comments
I confirm that it is broken. Here's what happened when I tried to run it:
|
It looks like an issue with SqlLineParser while reading user answer. The same was while However there is another issue (could be seen while running
So at least schema name should be included here e.g.
What is the expected behavior? Should it generate queries including schemas or should |
@snuyanzin : Is this change committed in master? How can use this? |
No I have not committed it to master (it exists only in my fork), btw I do not have rights to commit it here. However the main reason why I even have not made a PR is my previous comment. So
If no arguments are specified then the behavior as it was before. If the schema_name or schema_names specified then sqlline will try to drop tables only from the mentioned schemas. Please let me know if there are any objections/ideas/improvements |
I submitted a PR which extracts logic you need in a separate method. However this PR does not fix the current issue because of open questions in my previous comment |
Thank you! I'll update my PR as yours gets merged. |
Merged as 0be1ddd |
sqlline/src/main/java/sqlline/Commands.java
Line 448 in 11cb294
!dropall doesn't drop any table. This feature works fine in 1.2.0.
The text was updated successfully, but these errors were encountered: