summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-04-14 21:09:11 (GMT)
committerGitHub <noreply@github.com>2021-04-14 21:09:11 (GMT)
commit5cb601f956886b32641f818b5da347cc86a43db2 (patch)
tree4205f0ff5fced33357820c8382d8ca0ee5a0433d /Lib/sqlite3
parente07f4ab26aaf08f90ebd9e6004af14fd6ef39351 (diff)
downloadcpython-5cb601f956886b32641f818b5da347cc86a43db2.zip
cpython-5cb601f956886b32641f818b5da347cc86a43db2.tar.gz
cpython-5cb601f956886b32641f818b5da347cc86a43db2.tar.bz2
bpo-43296: Handle sqlite3_value_blob() errors (GH-24674)
Diffstat (limited to 'Lib/sqlite3')
-rw-r--r--Lib/sqlite3/test/userfunctions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/userfunctions.py b/Lib/sqlite3/test/userfunctions.py
index 749ea04..148d9f5 100644
--- a/Lib/sqlite3/test/userfunctions.py
+++ b/Lib/sqlite3/test/userfunctions.py
@@ -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