| Issue 173: | Not clear error when conection lost | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
1. connect to db ( client machine to server )
2. crash server/db or unplug client/server from the web
3. try a query
What is the expected output? What do you see instead?
A clear connection error
What version of the product are you using? On what operating system?
pyodbc-2.1.8-py2.6
Please provide any additional information below.
it can be solved if add this code inside pyodbc:
try:
doQuery( strquery, args )
except:
try:
#dummy query to check connection
doQuery( 'select 1 as [a]', args )
raise original error
except:
raise connection error
if dummy query fail it must be connection error
May 20, 2011
Project Member
#1
mkleehammer
Status:
WontFix
|