Skip to content

Commit 448ad9d

Browse files
author
Erlend E. Aasland
committed
pysqlite_statement_create now returns a Py object, not an int
pythonGH-26206 was broken by pythonGH-26475.
1 parent 1a8c778 commit 448ad9d

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)