use unixODBC for connection. Running queries from isql or DataManager
works fine for the DSN that I am using. However, under mxODBC, I can
get a connection object and a cursor object, but all attempts to
execute even the simplest selects result in empty resultsets. Any
ideas on what might be wrong?
Traceback (most recent call last):>>from mx.ODBC.unixODBC import *
con = connect('Postgresql',user='username',password='pas swd')
cur = con.cursor()
cur.execute('SELECT * FROM g_rif')
rs = cur.execute('SELECT * FROM g_rif')
rs
cur.execute('SELECT * FROM g_rif').fetchall()
File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'fetchall'
Thanks,
Sean