Skip to content

Commit

Permalink
query modified fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiimakogon committed Dec 27, 2022
1 parent c62b07b commit 38ca191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ksql/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (c *Client) ExecuteQuery(ctx context.Context, name, qType, query string) (s

if res.ErrorCode != 0 {
err = fmt.Errorf("invalid ksql response %s", res.Message)
if strings.HasPrefix(query, "DROP") && queryModified {
if strings.HasPrefix(query, "DROP") && !queryModified {
if terminateQuery, shouldModify := c.getPreHookTerminateQuery(res.Message); shouldModify {
query = terminateQuery + " " + query
}
Expand Down

0 comments on commit 38ca191

Please sign in to comment.