mariuz
unread,Feb 11, 2011, 3:30:16 AM2/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web.py
I have a issue with the cursor seems that is not open by default when
doing a fetch
import web
db=web.database(dbn='firebird',db='localhost:/tmp/
test.fdb',user='sysdba',passwo
rd='masterkey')
result=db.select('barcamp')
print result[0]
python webpy_firebird.py
0.01 (1): SELECT * FROM barcamp
Traceback (most recent call last):
File "webpy_firebird.py", line 4, in <module>
print result[0]
File "/usr/local/lib/python2.6/dist-packages/web.py-0.34-py2.6.egg/
web/utils.py", line 652, in __getitem__
return self.i.next()
File "/usr/local/lib/python2.6/dist-packages/web.py-0.34-py2.6.egg/
web/db.py", line 616, in iterwrapper
row = db_cursor.fetchone()
kinterbasdb.ProgrammingError: (-504, 'fetch: \n Dynamic SQL Error\n
SQL error code = -504\n Invalid cursor reference\n Cursor is not
open')