Skip to content

Commit ebbfd8f

Browse files
[3.14] gh-138736: Fix sqlite3.Connection.blobopen 'row' parameter type and naming (#138738) (GH-139062)
(cherry picked from commit 8eb1062) Co-authored-by: chiri <[email protected]>
1 parent 4bb33ff commit ebbfd8f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Doc/library/sqlite3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ Connection objects
614614
supplied, this must be a :term:`callable` returning
615615
an instance of :class:`Cursor` or its subclasses.
616616

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

619619
Open a :class:`Blob` handle to an existing
620620
:abbr:`BLOB (Binary Large OBject)`.
@@ -625,8 +625,8 @@ Connection objects
625625
:param str column:
626626
The name of the column where the blob is located.
627627

628-
:param str row:
629-
The name of the row where the blob is located.
628+
:param int rowid:
629+
The row id where the blob is located.
630630

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

Modules/_sqlite/clinic/connection.c.h

Lines changed: 4 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ _sqlite3.Connection.blobopen as blobopen
582582
Table name.
583583
column as col: str
584584
Column name.
585-
row: sqlite3_int64
586-
Row index.
585+
rowid as row: sqlite3_int64
586+
Row id.
587587
/
588588
*
589589
readonly: bool = False
@@ -597,7 +597,7 @@ Open and return a BLOB object.
597597
static PyObject *
598598
blobopen_impl(pysqlite_Connection *self, const char *table, const char *col,
599599
sqlite3_int64 row, int readonly, const char *name)
600-
/*[clinic end generated code: output=6a02d43efb885d1c input=23576bd1108d8774]*/
600+
/*[clinic end generated code: output=6a02d43efb885d1c input=cc3d4b47dac08401]*/
601601
{
602602
if (!pysqlite_check_thread(self) || !pysqlite_check_connection(self)) {
603603
return NULL;

0 commit comments

Comments
 (0)