mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
Fix decoding tiny/medium/long blobs (#215)
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user