aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHiroshi Inoue <inoue@tpf.co.jp>2001-09-14 01:50:33 +0000
committerHiroshi Inoue <inoue@tpf.co.jp>2001-09-14 01:50:33 +0000
commit5e14c9397db3c5a350404ff5e121680a8e4a6837 (patch)
treea2eca0276d9dad4976304ca468d52ed8ec3533b8 /src
parent5be2182e47951dc89811995e47711da2e1363858 (diff)
downloadpostgresql-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.c12
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.
*/