bpo-43296: Handle sqlite3_value_blob() errors (GH-24674)

This commit is contained in:
Erlend Egeberg Aasland 2021-04-14 23:09:11 +02:00 committed by GitHub
parent e07f4ab26a
commit 5cb601f956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 7 deletions

View file

@ -276,6 +276,10 @@ class FunctionTests(unittest.TestCase):
val = cur.fetchone()[0]
self.assertEqual(val, 2)
def test_empty_blob(self):
cur = self.con.execute("select isblob(x'')")
self.assertTrue(cur.fetchone()[0])
# Regarding deterministic functions:
#
# Between 3.8.3 and 3.15.0, deterministic functions were only used to