Comment 1 for bug 713372

Revision history for this message
Stephen Thorne (jerub) wrote :

I don't see how this can be possible. The code is literally:

                    elif isinstance(o, decimal.Decimal):
                        b.buffer_type = MYSQL_TYPE_NEWDECIMAL
                        o = str(o)
                        temp_strings.append(o)
                        b.buffer = PyString_AS_STRING(o)
                        c.ul = PyString_GET_SIZE(o)
                        b.length = &c.ul
                    elif isinstance(o, _AbstractIterWrapper):
                        b.buffer_type = MYSQL_TYPE_STRING
                        b.length = &c.ul
                        long_strings.append((i, o))
                    else:
                        raise TypeError('cannot bind %r object' % o.__class__)