[Python-bugs-list] [ python-Bugs-484545 ] win32.odbc failure - description not set

noreply@sourceforge.net noreply@sourceforge.net
Thu, 22 Nov 2001 07:49:47 -0800


Bugs item #484545, was opened at 2001-11-22 04:43
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=484545&group_id=5470

Category: Windows
Group: Python 2.2
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: M.-A. Lemburg (lemburg)
Summary: win32.odbc failure - description not set

Initial Comment:
# _grief.py
# This little program crashes Windows 95 at line 12.
# It should expire more gracefully.
import odbc, os, sys
dsn= 'Stocks//'    # Works OK, note that null UID and password must be
                    # supplied for Paradox
try:
  print 'dsn= ', dsn
  s = odbc.odbc(dsn) # dsn is defined in BDE Configurator
  
  cur = s.cursor()
  print cur.description
except:
  print 'grief:', sys.exc_info()
print s, cur
print 'done'



----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2001-11-22 07:49

Message:
Logged In: YES 
user_id=38388

Two things:
1. win32 is not supported by the Python-Dev team; it's an ActiveState extension, so support requests should go 
there.
2. cur.description is only available *after* you have executed at least one statement on the cursor.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=484545&group_id=5470