mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-43296: Handle sqlite3_value_blob() errors (GH-24674)
This commit is contained in:
parent
e07f4ab26a
commit
5cb601f956
3 changed files with 24 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue