@@ -118,20 +118,6 @@ autocommit_converter(PyObject *val, enum autocommit_mode *result)
118
118
return 0 ;
119
119
}
120
120
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
-
135
121
#define clinic_state () (pysqlite_get_state_by_type(Py_TYPE(self)))
136
122
#include "clinic/connection.c.h"
137
123
#undef clinic_state
@@ -202,12 +188,8 @@ class Autocommit_converter(CConverter):
202
188
type = "enum autocommit_mode"
203
189
converter = "autocommit_converter"
204
190
205
- class sqlite3_int64_converter(CConverter):
206
- type = "sqlite3_int64"
207
- converter = "sqlite3_int64_converter"
208
-
209
191
[python start generated code]*/
210
- /*[python end generated code: output=da39a3ee5e6b4b0d input=dff8760fb1eba6a1 ]*/
192
+ /*[python end generated code: output=da39a3ee5e6b4b0d input=bc2aa6c7ba0c5f8f ]*/
211
193
212
194
// NB: This needs to be in sync with the sqlite3.connect docstring
213
195
/*[clinic input]
@@ -501,7 +483,7 @@ _sqlite3.Connection.blobopen as blobopen
501
483
Table name.
502
484
column as col: str
503
485
Column name.
504
- row: sqlite3_int64
486
+ row: int
505
487
Row index.
506
488
/
507
489
*
@@ -515,8 +497,8 @@ Open and return a BLOB object.
515
497
516
498
static PyObject *
517
499
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 ]*/
520
502
{
521
503
if (!pysqlite_check_thread (self ) || !pysqlite_check_connection (self )) {
522
504
return NULL ;
0 commit comments