From: 江文 <jiangwen365@sohu.com>
To: pgsql-odbc@postgresql.org
Subject: Re: PSQLODBC.DLL unhandled exception
Date: Wed, 13 Apr 2005 11:26:36 +0800 (CST)
Message-ID: <22584245.1113362796308.JavaMail.postfix@mx37.mail.sohu.com> (raw)
Hi,
Just want to claim that I have the similar problem while using ODBC to connect PostgreSQL in Python. Below is the Python script:
import dbi,odbc
while True:
print 'connecting Postgres'
b=odbc.odbc("HScode") # PostgreSQL DSN
print 'getting postgres cursor'
bc=b.cursor()
bc.execute('select * from latest_parts limit 1') #do some operations
#print bc.fetchall()
bc.close()
b.close()
Run this program on my machine, and Python would crash exactly the fifith loop, after printing out "connecting Postgres", a dialog box would appear saying something like: Python have referenced a memory address that can not be read(write?).
Also a strangeness is: Increase the number after LIMIT, say 7, and Python could go further, maybe 60 loops; increase it to 100, that is 'select * from latest_parts limit 100', and Python could almost pass the loop block successfully!
Regards,
Henry
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: jiangwen365@sohu.com
Subject: Re: PSQLODBC.DLL unhandled exception
In-Reply-To: <22584245.1113362796308.JavaMail.postfix@mx37.mail.sohu.com>
References: <22584245.1113362796308.JavaMail.postfix@mx37.mail.sohu.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