aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Modules/_sqlite/module.h
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-08-30 20:32:21 +0200
committerGitHub <noreply@github.com>2021-08-30 19:32:21 +0100
commit86d8b465231473f850cc5e906013ba8581ddb503 (patch)
tree38821067898cf1fb5fec7b0102e08776ce9df3fe /Modules/_sqlite/module.h
parentf62763d26755260c31c717fb396550e00eb6b2a0 (diff)
downloadcpython-86d8b465231473f850cc5e906013ba8581ddb503.tar.gz
cpython-86d8b465231473f850cc5e906013ba8581ddb503.zip
bpo-16379: expose SQLite error codes and error names in `sqlite3` (GH-27786)
Diffstat (limited to 'Modules/_sqlite/module.h')
-rw-r--r--Modules/_sqlite/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_sqlite/module.h b/Modules/_sqlite/module.h
index a286739579d..c273c1f9ed9 100644
--- a/Modules/_sqlite/module.h
+++ b/Modules/_sqlite/module.h
@@ -81,6 +81,8 @@ pysqlite_get_state_by_type(PyTypeObject *Py_UNUSED(tp))
return &pysqlite_global_state;
}
+extern const char *pysqlite_error_name(int rc);
+
#define PARSE_DECLTYPES 1
#define PARSE_COLNAMES 2
#endif