From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Adrien de Croy <adrien@qbik.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Access violation (0xC0000005) in PSQLODBC35W.DLL when calling SQLDescribeColW
Date: Wed, 10 Nov 2010 13:25:06 +0900
Message-ID: <4CDA1EA2.3090801@tpf.co.jp> (raw)
In-Reply-To: <4CDA19C5.8070607@qbik.com>
References: <6B48F83ECA0ABA4F9E360E8E0A1CDFFC35E4AE0E@HALLEY.maeil.pt>
<4CD09C7F.9070403@tpf.co.jp>
<4CD0D584.30908@qbik.com>
<4CD11F17.5050207@tpf.co.jp>
<4CD24723.5020203@qbik.com>
<4CD3374A.1040003@qbik.com>
<4CD3C5F1.80606@tpf.co.jp>
<4CD9F9ED.3000201@qbik.com>
<4CDA16F7.10402@tpf.co.jp>
<4CDA19C5.8070607@qbik.com>
(2010/11/10 13:04), Adrien de Croy wrote:
>
> Hi
>
> I have some helper classes to fetch fields from a record, a helper class
> to manage iteration through a result set.
>
> If I call my fetch helper function for some field ordinal it works fine
> the first time. If I call it again (without having called any method to
> change the current row in the result set) it fails on the same ordinal,
> but works on other ordinals.
>
> So, it looks to me like the fetch call is cleaning up the field data
> when you fetch,
If the helper function calls SQLGetData() for the column, yes.
SQLGetData() cleans up data which it returns to the caller and
returns SQL_NO_DATA when all data was returned to the caller.
You can divide into multiple SQLGetData() calls using this feature
when a column has a big data.
regards,
Hiroshi Inoue
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, adrien@qbik.com
Subject: Re: Access violation (0xC0000005) in PSQLODBC35W.DLL when calling SQLDescribeColW
In-Reply-To: <4CDA1EA2.3090801@tpf.co.jp>
References: <6B48F83ECA0ABA4F9E360E8E0A1CDFFC35E4AE0E@HALLEY.maeil.pt> <4CD09C7F.9070403@tpf.co.jp> <4CD0D584.30908@qbik.com> <4CD11F17.5050207@tpf.co.jp> <4CD24723.5020203@qbik.com> <4CD3374A.1040003@qbik.com> <4CD3C5F1.80606@tpf.co.jp> <4CD9F9ED.3000201@qbik.com> <4CDA16F7.10402@tpf.co.jp> <4CDA19C5.8070607@qbik.com> <4CDA1EA2.3090801@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox