mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-43752: Fix sqlite3 regression for zero-sized blobs with converters (GH-25228)
This commit is contained in:
parent
333d10cbb5
commit
6f1e8ccffa
3 changed files with 20 additions and 12 deletions
|
@ -255,7 +255,9 @@ class DeclTypesTests(unittest.TestCase):
|
|||
def test_convert_zero_sized_blob(self):
|
||||
self.con.execute("insert into test(cbin) values (?)", (b"",))
|
||||
cur = self.con.execute("select cbin from test")
|
||||
self.assertEqual(cur.fetchone()[0], b"blobish")
|
||||
# Zero-sized blobs with converters returns None. This differs from
|
||||
# blobs without a converter, where b"" is returned.
|
||||
self.assertIsNone(cur.fetchone()[0])
|
||||
|
||||
|
||||
class ColNamesTests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue