Fix decoding tiny/medium/long blobs (#215)

This commit is contained in:
kilroy42
2017-12-14 09:30:29 +01:00
committed by INADA Naoki
parent 2996f9bebc
commit 73ccdcdddf
2 changed files with 4 additions and 5 deletions

View File

@ -116,7 +116,7 @@ class test_MySQLdb(capabilities.DatabaseTest):
c.execute("SELECT id, AsText(border) FROM test_MULTIPOLYGON")
row = c.fetchone()
self.assertEqual(row[0], 1)
self.assertEqual(row[1], b'MULTIPOLYGON(((1 1,1 -1,-1 -1,-1 1,1 1)),((1 1,3 1,3 3,1 3,1 1)))')
self.assertEqual(row[1], 'MULTIPOLYGON(((1 1,1 -1,-1 -1,-1 1,1 1)),((1 1,3 1,3 3,1 3,1 1)))')
c.execute("SELECT id, AsWKB(border) FROM test_MULTIPOLYGON")
row = c.fetchone()