Treat BIT as binary type.

This commit is contained in:
INADA Naoki
2015-04-08 23:04:10 +09:00
parent 06905e5e6f
commit 04896fc6f5
2 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class test_MySQLdb(capabilities.DatabaseTest):
row = c.fetchone()
self.assertEqual(row[0], b'\x03')
self.assertEqual(row[1], b'\x03\xff')
self.assertEqual(row[2], 'b\xff'*8)
self.assertEqual(row[2], b'\xff'*8)
finally:
c.execute("drop table if exists test_BIT")