[PyGreSQL] Binding decimal.Decimal

Gregory Golberg grisha at snaplogic.org
Mon Sep 8 21:59:09 EDT 2008


Hi all,

It appears that binding decimal.Decimal does not work (have to use int 
or float). Are there any plans to fix this? Using 'float' is wrong in 
general, you don't want $10.37 to become 10.37000000001 for instance...

The error I get is:

Native error: ("error 'do not know how to handle type <class 'decimal.Decimal'>' in 'INIT'",)


-Greg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: grisha.vcf
Type: text/x-vcard
Size: 274 bytes
Desc: not available
Url : http://mailman.vex.net/pipermail/pygresql/attachments/20080908/97d581e4/attachment.vcf 


More information about the PyGreSQL mailing list