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

KILL Statements are giving exception when there is 0 row returned. #58

Closed
ahmeturun opened this issue Dec 22, 2020 · 2 comments
Closed
Assignees

Comments

@ahmeturun
Copy link

ahmeturun commented Dec 22, 2020

Using 'KILL QUERY' statement and trying to read the results gives error when the result returns 0 row. pls check the example I attached.
clickhouse-session-locked.zip

@DarkWanderer DarkWanderer self-assigned this Dec 23, 2020
@DarkWanderer
Copy link
Owner

Hi. You need to use ExecuteStatement rather than ExecuteReader/ExecuteQuery for DDL and 'administrative' statements (KILL/OPTIMIZE/ALTER/CREATE/DROP etc.) - the fact that they do return something sometimes is more of an exception than a rule. However, it still should not throw, I'll look into it.

@DarkWanderer
Copy link
Owner

Will be released in next patch

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

No branches or pull requests

2 participants