Haven't look at the pyodbc code, but that is possibly a correct
analysis. Certainly, the postgresql had that problem and the function
you point out in there code was specifically added to cope with it.

Graham

On 10 February 2011 22:45, Ole Laursen <[email protected]> wrote:
> Hi people,
>
> This is mostly a FYI. If you're using pyodbc, have decimal parameters
> and are getting something resembling
>
>  DatabaseError: ('Python type Decimal not supported.  param=1',
> 'HY097')
>
> then you've got the same problem that has previously been reported
> (and now sort of fixed I think) with psycopg2, kindly explained in
> detail by Graham here
>
>  http://groups.google.com/group/webpy/msg/9f668fb9a549f759
>
> with a suggested work-around here (fingers crossed)
>
>  http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Multiple_Python_Sub_Interpreters
>
> I've entered an issue in pyodbc here
>
>  http://code.google.com/p/pyodbc/issues/detail?id=156
>
> Hope this can save others a bit of grief, searching for "Python type
> Decimal not supported" currently just turns up a note that support for
> it has been added to pyodbc 2.0.18. :)
>
> Ole
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to