summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-02 13:22:15 (GMT)
committerGitHub <noreply@github.com>2021-06-02 13:22:15 (GMT)
commitfbf25b8c0dd1e62db59117d53bbd2d4131a06867 (patch)
tree579b89baa44cc5792b23c29b49d40bbe6ebe90c6 /Modules
parent7b1f527d5b37dc3aa085ebbe11a1a2dd29ef210f (diff)
downloadcpython-fbf25b8c0dd1e62db59117d53bbd2d4131a06867.zip
cpython-fbf25b8c0dd1e62db59117d53bbd2d4131a06867.tar.gz
cpython-fbf25b8c0dd1e62db59117d53bbd2d4131a06867.tar.bz2
bpo-44165: pysqlite_statement_create now returns a Py object, not an int (GH-26484)
GH-26206 was broken by GH-26475.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_sqlite/statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/statement.c b/Modules/_sqlite/statement.c
index c4a790c..c86645a 100644
--- a/Modules/_sqlite/statement.c
+++ b/Modules/_sqlite/statement.c
@@ -70,7 +70,7 @@ pysqlite_statement_create(pysqlite_Connection *connection, PyObject *sql)
int max_length = sqlite3_limit(connection->db, SQLITE_LIMIT_LENGTH, -1);
if (sql_cstr_len >= max_length) {
PyErr_SetString(pysqlite_DataError, "query string is too large");
- return PYSQLITE_TOO_MUCH_SQL;
+ return NULL;
}
if (strlen(sql_cstr) != (size_t)sql_cstr_len) {
PyErr_SetString(PyExc_ValueError,