BIT values are not converted correctly to Python

Bug #507466 reported by Geert JM Vanderkelen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Connector/Python
Fix Released
High
Geert JM Vanderkelen

Bug Description

BIT values coming from MySQL are not converted correctly to Python.
Previous commit doesn't work and needs fixing (pushed to quickly..)

Something like this:
    def _BIT_to_python(self, v, dsc=None):
        """Returns BIT columntype as integer"""
        return read_int(v,len(v))[1]

Related branches

Revision history for this message
Geert JM Vanderkelen (geertjmvdk) wrote :

Previous pushed 'fix' was VERY _lousy_!

revno: 179
committer: Geert Vanderkelen <email address hidden>
branch nick: myconnpy-Alchemy
timestamp: Fri 2010-01-15 10:38:29 +0100
message:
  Fixing MySQL BIT column conversion to Python

  * BIT MySQL data type are now correctly converted to Python (int)
  * Adding test case for bug lp:507466
  * Updating test cases in test_conversion.py

Changed in myconnpy:
status: In Progress → Fix Committed
Changed in myconnpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.