Skip to content

Commit fbf25b8

Browse files
author
Erlend Egeberg Aasland
authored
bpo-44165: pysqlite_statement_create now returns a Py object, not an int (GH-26484)
GH-26206 was broken by GH-26475.
1 parent 7b1f527 commit fbf25b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sqlite/statement.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pysqlite_statement_create(pysqlite_Connection *connection, PyObject *sql)
7070
int max_length = sqlite3_limit(connection->db, SQLITE_LIMIT_LENGTH, -1);
7171
if (sql_cstr_len >= max_length) {
7272
PyErr_SetString(pysqlite_DataError, "query string is too large");
73-
return PYSQLITE_TOO_MUCH_SQL;
73+
return NULL;
7474
}
7575
if (strlen(sql_cstr) != (size_t)sql_cstr_len) {
7676
PyErr_SetString(PyExc_ValueError,

0 commit comments

Comments
 (0)