[issue43752] Fetching an empty value from date column crashes on SQLite.

2021-04-06 Thread Mariusz Felisiak
Mariusz Felisiak added the comment: A regression test: def test_convert_null_date(self): con = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES) cur = con.cursor() cur.execute("CREATE TABLE t (x DATE NULL)") cur.execute("INSERT INTO t (x) VAL

[issue43752] Fetching an empty value from date column crashes on SQLite.

2021-04-06 Thread Mariusz Felisiak
New submission from Mariusz Felisiak : We noticed a regression in Python3.10.0a7 (it works properly in Python3.10.0a6) when running Django's test suite. `convert_date()`[1] is called and crashes when fetching an empty value from `date` column on SQLite: File "python3.10/lib/sqlite3/dbapi2.py"