From 5e14c9397db3c5a350404ff5e121680a8e4a6837 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 14 Sep 2001 01:50:33 +0000 Subject: [PATCH] Fix a coversation error with pre 6.4 versions. Hiroshi Inoue --- src/interfaces/odbc/connection.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/interfaces/odbc/connection.c b/src/interfaces/odbc/connection.c index b055bd0144..27bdc51cea 100644 --- a/src/interfaces/odbc/connection.c +++ b/src/interfaces/odbc/connection.c @@ -1272,6 +1272,18 @@ CC_send_query(ConnectionClass *self, char *query, QueryInfo *qi) break; } } + /* + * If retres isn't set yet. + */ + if (!retres) + { + if (res && QR_get_aborted(res)) + retres = res; + else if (tuples_return) + retres = result_in; + else + retres = res; + } /* * set notice message to result_in. */ -- 2.40.0