[PyGreSQL] Binding decimal.Decimal

Gregory Golberg grisha at snaplogic.org
Mon Sep 15 14:30:59 EDT 2008


> > Native error: ("error 'do not know how to handle type <class 
> > 'decimal.Decimal'>' in 'INIT'",)
>
> What exactly did you do to get this error? Pygres should play nice with 
> Decimals, the only problem is that it treats them are binary floats.
>   
This happened when I ran a cursor.execute() and used Decimals for parameters
-------------- 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/20080915/683f62cf/attachment.vcf 


More information about the PyGreSQL mailing list