Skip to content

Commit e00919d

Browse files
committed
reduce diff
1 parent a0026e3 commit e00919d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Modules/_sqlite/cursor.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ stmt_step(sqlite3_stmt *statement)
582582
* Return an sqlite3 error code.
583583
*/
584584
static int
585-
bind_param0(pysqlite_state *state, pysqlite_Connection *conn,
586-
pysqlite_Statement *self, int pos, PyObject *arg)
585+
bind_param(pysqlite_state *state, pysqlite_Connection *conn,
586+
pysqlite_Statement *self, int pos, PyObject *arg)
587587
{
588588
int rc = SQLITE_OK;
589589
parameter_type paramtype;
@@ -701,11 +701,11 @@ need_adapt(pysqlite_state *state, PyObject *obj)
701701
* Return an sqlite3 error code.
702702
*/
703703
static int
704-
bind_param(pysqlite_state *state, pysqlite_Connection *conn,
705-
pysqlite_Statement *self, int pos, PyObject *arg)
704+
bind_object(pysqlite_state *state, pysqlite_Connection *conn,
705+
pysqlite_Statement *self, int pos, PyObject *arg)
706706
{
707707
if (!need_adapt(state, arg)) {
708-
return bind_param0(state, conn, self, pos, arg);
708+
return bind_param(state, conn, self, pos, arg);
709709
}
710710

711711
PyObject *protocol = (PyObject *)state->PrepareProtocolType;
@@ -718,7 +718,7 @@ bind_param(pysqlite_state *state, pysqlite_Connection *conn,
718718
return SQLITE_ERROR;
719719
}
720720

721-
int rc = bind_param0(state, conn, self, pos, adapted);
721+
int rc = bind_param(state, conn, self, pos, adapted);
722722
Py_DECREF(adapted);
723723
return rc;
724724
}
@@ -804,7 +804,7 @@ bind_parameters(pysqlite_state *state, pysqlite_Connection *conn,
804804
return -1;
805805
}
806806

807-
sqlite3_rc = bind_param(state, conn, self, i + 1, value);
807+
sqlite3_rc = bind_object(state, conn, self, i + 1, value);
808808
Py_DECREF(value);
809809
if (sqlite3_rc != SQLITE_OK) {
810810
goto error;
@@ -840,7 +840,7 @@ bind_parameters(pysqlite_state *state, pysqlite_Connection *conn,
840840
return -1;
841841
}
842842

843-
sqlite3_rc = bind_param(state, conn, self, i, value);
843+
sqlite3_rc = bind_object(state, conn, self, i, value);
844844
Py_DECREF(value);
845845
if (sqlite3_rc != SQLITE_OK) {
846846
goto error;

0 commit comments

Comments
 (0)