pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrien de Croy <adrien@qbik.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Access violation (0xC0000005) in PSQLODBC35W.DLL when calling SQLDescribeColW
Date: Fri, 05 Nov 2010 11:44:26 +1300
Message-ID: <4CD3374A.1040003@qbik.com> (raw)
In-Reply-To: <4CD24723.5020203@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>


Hi all

I'm getting an access violation from within SQLDescribeColW when I'm 
getting the result scheme from a query.

the query is pretty simple:

SELECT count(*) as folder_files, sum(file_size) as folder_size, 
sum(disk_use) as folder_size_disk, folder_id from cache_index where 
volume_id = %u group by folder_id

SQLExecute returns OK
SQLNumResultCols returns 4 columns as expected

the SQLDescribeColW blows up when calling with column #2, corresponding 
to sum(file_size).  file_size is a bigint field.  There are only 5 
records, and the sum of the file_size is under 1MB.  So shouldn't be any 
bigint overflow or something.

I used to use a double precision and it worked fine, then I figured out 
how to store into a bigint field and now this happens every time I do 
this query if there are any records in the table.  If there are no 
records it's fine.

Regards

Adrien de Croy



view thread (8+ messages)  latest in thread

Message-ID: <4CD3374A.1040003@qbik.com>
Permalink:  ../4CD3374A.1040003@qbik.com/
Also on:    postgresql.org/message-id/4CD3374A.1040003@qbik.com

 · 

reply

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: adrien@qbik.com
  Subject: Re: Access violation (0xC0000005) in PSQLODBC35W.DLL when calling SQLDescribeColW
  In-Reply-To: <4CD3374A.1040003@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>

* 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