Skip to content

Commit 9bf361b

Browse files
Revert 5390fec to see if test fails on Windows
1 parent 33e196b commit 9bf361b

File tree

2 files changed

+9
-26
lines changed

2 files changed

+9
-26
lines changed

Modules/_sqlite/clinic/connection.c.h

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_sqlite/connection.c

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,6 @@ autocommit_converter(PyObject *val, enum autocommit_mode *result)
118118
return 0;
119119
}
120120

121-
static int
122-
sqlite3_int64_converter(PyObject *obj, sqlite3_int64 *result)
123-
{
124-
if (!PyLong_Check(obj)) {
125-
PyErr_SetString(PyExc_TypeError, "expected 'int'");
126-
return 0;
127-
}
128-
*result = _pysqlite_long_as_int64(obj);
129-
if (PyErr_Occurred()) {
130-
return 0;
131-
}
132-
return 1;
133-
}
134-
135121
#define clinic_state() (pysqlite_get_state_by_type(Py_TYPE(self)))
136122
#include "clinic/connection.c.h"
137123
#undef clinic_state
@@ -202,12 +188,8 @@ class Autocommit_converter(CConverter):
202188
type = "enum autocommit_mode"
203189
converter = "autocommit_converter"
204190
205-
class sqlite3_int64_converter(CConverter):
206-
type = "sqlite3_int64"
207-
converter = "sqlite3_int64_converter"
208-
209191
[python start generated code]*/
210-
/*[python end generated code: output=da39a3ee5e6b4b0d input=dff8760fb1eba6a1]*/
192+
/*[python end generated code: output=da39a3ee5e6b4b0d input=bc2aa6c7ba0c5f8f]*/
211193

212194
// NB: This needs to be in sync with the sqlite3.connect docstring
213195
/*[clinic input]
@@ -501,7 +483,7 @@ _sqlite3.Connection.blobopen as blobopen
501483
Table name.
502484
column as col: str
503485
Column name.
504-
row: sqlite3_int64
486+
row: int
505487
Row index.
506488
/
507489
*
@@ -515,8 +497,8 @@ Open and return a BLOB object.
515497

516498
static PyObject *
517499
blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
518-
sqlite3_int64 row, int readonly, const char *name)
519-
/*[clinic end generated code: output=6a02d43efb885d1c input=23576bd1108d8774]*/
500+
int row, int readonly, const char *name)
501+
/*[clinic end generated code: output=0c8e2e58516d0b5c input=fa73c83aa7a7ddee]*/
520502
{
521503
if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
522504
return NULL;

0 commit comments

Comments
 (0)