[DB-SIG] A possible bug in pyPgSQL 2.3

gupt_vive gupt_vive"<gupt_vive@indiatimes.com
Thu, 27 Feb 2003 18:20:36 +0530


hi all,

I am sending this mail at this address coz i was unable to find some address for reporting possible bug in pyPgSQL and the pyPgSQL project page was not opening (slow net speed). 

This may be a bug left in the pyPgSQL version 2.3. When i try to add some numeric data returned by query (PgNumeric) then it gives me name error (global __add__ not found). The actual code for the __radd__ in PgNumeric was

def __radd__(self,other):
    return __add__(self,other)

A possible work around (it worked for me) may be

def __radd__(self,other):
    return self.__add__(other)

regards 
vivek kumar



Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com

 Buy the best in Movies at http://www.videos.indiatimes.com

Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now !