]> granicus.if.org Git - postgresql/commitdiff
Fix a coversation error with pre 6.4 versions.
authorHiroshi Inoue <inoue@tpf.co.jp>
Fri, 14 Sep 2001 01:50:33 +0000 (01:50 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Fri, 14 Sep 2001 01:50:33 +0000 (01:50 +0000)
Hiroshi Inoue

src/interfaces/odbc/connection.c

index b055bd01444ea3bd284af816b40a4ca038c879dd..27bdc51cea28e84bd5b124a715c5151676ae0659 100644 (file)
@@ -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.
         */