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

Dropping nonexistent SPs should return error #787

Open
nirbhayc opened this issue Mar 20, 2018 · 1 comment
Open

Dropping nonexistent SPs should return error #787

nirbhayc opened this issue Mar 20, 2018 · 1 comment
Labels

Comments

@nirbhayc
Copy link
Collaborator

nctdb> select * from comdb2_procedures;
[select * from comdb2_procedures] rc 0
nctdb> drop procedure proc 1;
[drop procedure proc 1] rc 0

nctdb> select * from comdb2_tables;
(tablename='sqlite_stat1')
(tablename='sqlite_stat4')
[select * from comdb2_tables] rc 0
nctdb> drop table t1;
[drop table t1] failed with rc -3 no such table: t1
@nirbhayc nirbhayc added the bug label Mar 20, 2018
@akshatsikarwar
Copy link
Contributor

akshatsikarwar commented Mar 20, 2018

This is by design (https://github.com/bloomberg/comdb2/blob/master/tests/sp.test/sp.sh#L703)
This keeps output compatible with comdb2sc.tsk otherwise user scripts were breaking.

Things should work as expected if you use client side versions.

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

No branches or pull requests

2 participants