[Tutor] Operational Error. --HELP

bijoy franco bijoy.webworkers at gmail.com
Tue Mar 31 20:15:19 CEST 2009


Python throws OperationalError while trying to do any database operations. I
am using pgdb module.
**Code:*import pgdb


class addbook:


        def addBook(self):

*                *infunction_curs.execute('SELECT * FROM table_book')

**error code:*

File "/usr/lib/python2.5/site-packages/pgdb.py", line 197, in executemany
raise OperationalError, "internal error in '%s': %s" % (sql,err)
pg.OperationalError: internal error in 'SELECT * FROM table_book': error
return without exception set

i am not able to do any database operations apart from opening Conection and
assaigning cursor object.

how do i solve this. pls help

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090331/ad974d22/attachment-0001.htm>

More information about the Tutor mailing list