Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B91681337B77 for ; Mon, 14 Feb 2011 15:49:52 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 06905-08 for ; Mon, 14 Feb 2011 19:49:45 +0000 (UTC) X-Greylist: delayed 00:07:22.316554 by SQLgrey-1.7.6 Received: from bounce-out.neti.ee (bounce-out.neti.ee [194.126.101.104]) by mail.postgresql.org (Postfix) with ESMTP id 38FA31337B58 for ; Mon, 14 Feb 2011 15:49:45 -0400 (AST) Received: from smtp-out.neti.ee (vm-relay2.estpak.ee [88.196.174.133]) by Bounce1.estpak.ee (Postfix) with ESMTP id CD7583B2E90 for ; Mon, 14 Feb 2011 21:42:19 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by vm-relay2.estpak.ee (Postfix) with ESMTP id DEEDC151 for ; Mon, 14 Feb 2011 21:42:16 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-relay2.estpak.ee Received: from smtp-out.neti.ee ([127.0.0.1]) by localhost (vm-relay2.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U5RuiBFG6pPM for ; Mon, 14 Feb 2011 21:42:14 +0200 (EET) Received: from HOT-Relayhost3.estpak.ee (hot-relayhost3.estpak.ee [88.196.174.147]) by vm-relay2.estpak.ee (Postfix) with ESMTP id 5C1E048 for ; Mon, 14 Feb 2011 21:42:14 +0200 (EET) X-SMTP-Auth-NETI-Businessmail: no Received: from andrusnotebook (unknown [195.50.198.194]) by HOT-Relayhost3.estpak.ee (Postfix) with SMTP id 50178160 for ; Mon, 14 Feb 2011 21:42:14 +0200 (EET) Message-ID: From: "Andrus" To: Subject: latest driver returns no error on out of memory Date: Mon, 14 Feb 2011 21:42:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18197 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18263 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.55 tagged_above=-10 required=5 tests=BAYES_50=0.8, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, STOX_REPLY_TYPE=0.439, STOX_REPLY_TYPE_WITHOUT_QUOTES=1.757 X-Spam-Level: **** X-Archive-Number: 201102/12 X-Sequence-Number: 10586 I tried latest odbc driver in windows to get large data. Debug log below shows that in case of out of memory error driver does not return this error but returns success code. Checiking Use declare/fetch checkbox does not fix this. How to fix ? Andrus [4636-2541.859]REALLOC: old_count = 819200, size = 222822400 [4636-2541.859]CC_error_statements: self=030870A8 [4636-2541.875]CONN ERROR: func=CC_send_query, desc='', errnum=109, errmsg='Out of memory while reading tuples.' [4636-2541.875]SOCK_get_id has to eat 381 bytes [4636-2541.875]send_query: got id = 'D' [4636-2541.875]in QR_Constructor [4636-2541.875]exit QR_Constructor [4636-2541.875]QResult: enter DESTRUCTOR [4636-2541.875]QResult: in QR_close_result [4636-2541.875]QResult: free memory in, fcount=0 [4636-2541.875]QResult: free memory out [4636-2541.875]QResult: enter DESTRUCTOR [4636-2541.875]QResult: exit close_result [4636-2541.875]QResult: exit DESTRUCTOR [4636-2541.875]QResult: enter DESTRUCTOR [4636-2541.875]QResult: in QR_close_result [4636-2541.875]QResult: free memory in, fcount=819200 [4636-2545.500]QResult: free memory out [4636-2545.500]QResult: enter DESTRUCTOR [4636-2545.500]QResult: exit close_result [4636-2545.500]QResult: exit DESTRUCTOR [4636-2545.500]SC_set_Result(2cc90b8, 30b4dc8)[4636-2545.500]QResult: enter DESTRUCTOR [4636-2545.500]retval=0