Operational Error. --HELP

bijoy franco bijoy.webworkers at gmail.com
Tue Mar 31 00:08:43 EDT 2009


Hi,

Following is the in-function cursor object.
Code:import pgdb

__metaclass__=type

class addbook:


conn=pgdb.connect(dsn='localhost:secondbooks',user='postgres',password='postgres1')
        curs=conn.cursor()

        def addBook(self):

                *infunction_curs=self.curs**
*                *infunction_curs.execute('SELECT * FROM table_book')*


it throws up following error.
error:

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

Couldn't figure out the reason. Help needed

Thanks in Advance

Bijoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090331/a959d7c0/attachment.html>


More information about the Python-list mailing list