]> granicus.if.org Git - python/commit
bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)
authorVictor Stinner <vstinner@redhat.com>
Wed, 26 Jun 2019 01:16:24 +0000 (03:16 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2019 01:16:24 +0000 (03:16 +0200)
commitc6a2320e876354ee62cf8149b849bcff9492d38a
treed5f5042334eb149bf08a01e7f09b429db0360ff2
parented076ed467264b43ed01a8223ca65b133b590919
bpo-37406: sqlite3 raises TypeError for wrong operation type (GH-14386)

The sqlite3 module now raises TypeError, rather than ValueError, if
operation argument type is not str: execute(), executemany() and
calling a connection.
Lib/sqlite3/test/dbapi.py
Lib/sqlite3/test/regression.py
Misc/NEWS.d/next/Library/2019-06-26-03-00-06.bpo-37406.uovkpq.rst [new file with mode: 0644]
Modules/_sqlite/connection.c
Modules/_sqlite/cursor.c
Modules/_sqlite/statement.c