From ebeee30b4e10c2b4161ae4781f76902a198a73f4 Mon Sep 17 00:00:00 2001 From: Mark Hannum Date: Tue, 8 Jul 2025 14:43:24 -0400 Subject: [PATCH] Fall back to complete drain Signed-off-by: Mark Hannum --- cdb2api/cdb2api.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cdb2api/cdb2api.c b/cdb2api/cdb2api.c index 3f1153b51c..4cb27dcf78 100644 --- a/cdb2api/cdb2api.c +++ b/cdb2api/cdb2api.c @@ -4453,6 +4453,9 @@ static int process_set_command(cdb2_hndl_tp *hndl, const char *sql) static inline void consume_previous_query(cdb2_hndl_tp *hndl) { + while (cdb2_next_record_int(hndl, 0) == CDB2_OK) + ; +/* int hardbound = 0; while (cdb2_next_record_int(hndl, 0) == CDB2_OK) { hardbound++; @@ -4461,6 +4464,7 @@ static inline void consume_previous_query(cdb2_hndl_tp *hndl) break; } } +*/ clear_responses(hndl); hndl->rows_read = 0;