Skip to content

Commit 654378c

Browse files
authored
Merge pull request #1 from erlend-aasland/suggestion
Suggestion for #138738
2 parents 74fbf67 + 8024f7b commit 654378c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Doc/library/sqlite3.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ Connection objects
620620
supplied, this must be a :term:`callable` returning
621621
an instance of :class:`Cursor` or its subclasses.
622622

623-
.. method:: blobopen(table, column, row, /, *, readonly=False, name="main")
623+
.. method:: blobopen(table, column, rowid, /, *, readonly=False, name="main")
624624

625625
Open a :class:`Blob` handle to an existing
626626
:abbr:`BLOB (Binary Large OBject)`.
@@ -632,7 +632,7 @@ Connection objects
632632
The name of the column where the blob is located.
633633

634634
:param int rowid:
635-
The rowid of the row where the blob is located.
635+
The row id where the blob is located.
636636

637637
:param bool readonly:
638638
Set to ``True`` if the blob should be opened without write

Modules/_sqlite/connection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ _sqlite3.Connection.blobopen as blobopen
578578
Table name.
579579
column as col: str
580580
Column name.
581-
row: sqlite3_int64
582-
Row index.
581+
rowid: sqlite3_int64
582+
Row id.
583583
/
584584
*
585585
readonly: bool = False
@@ -592,7 +592,7 @@ Open and return a BLOB object.
592592

593593
static PyObject *
594594
blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
595-
sqlite3_int64 row, int readonly, const char *name)
595+
sqlite3_int64 rowid, int readonly, const char *name)
596596
/*[clinic end generated code: output=6a02d43efb885d1c input=23576bd1108d8774]*/
597597
{
598598
if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
@@ -603,7 +603,7 @@ blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
603603
sqlite3_blob *blob;
604604

605605
Py_BEGIN_ALLOW_THREADS
606-
rc = sqlite3_blob_open(self->db, name, table, col, row, !readonly, &blob);
606+
rc = sqlite3_blob_open(self->db, name, table, col, rowid, !readonly, &blob);
607607
Py_END_ALLOW_THREADS
608608

609609
if (rc == SQLITE_MISUSE) {

0 commit comments

Comments
 (0)