diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-09-14 01:50:33 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2001-09-14 01:50:33 +0000 |
commit | 5e14c9397db3c5a350404ff5e121680a8e4a6837 (patch) | |
tree | a2eca0276d9dad4976304ca468d52ed8ec3533b8 /src | |
parent | 5be2182e47951dc89811995e47711da2e1363858 (diff) | |
download | postgresql-5e14c9397db3c5a350404ff5e121680a8e4a6837.tar.gz postgresql-5e14c9397db3c5a350404ff5e121680a8e4a6837.zip |
Fix a coversation error with pre 6.4 versions.
Hiroshi Inoue
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/odbc/connection.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/interfaces/odbc/connection.c b/src/interfaces/odbc/connection.c index b055bd01444..27bdc51cea2 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. */ |