Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Consistency FTW
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
  • Loading branch information
Erlend Egeberg Aasland and ezio-melotti authored Aug 4, 2022
commit 86d86c093f55afcba8a5aa92870b925a587e3aba
2 changes: 1 addition & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ using :meth:`~Cursor.executemany`::
>>> cur.executemany('INSERT INTO stocks VALUES(?, ?, ?, ?, ?)', data)

Notice that we used ``?`` placeholders to bind *data* to the query.
Always use placeholders instead of :ref:`string formatting<tut-formatting>`
Always use placeholders instead of :ref:`string formatting <tut-formatting>`
to bind Python values to SQL statements,
to avoid `SQL injection attacks`_.
See the :ref:`placeholders how-to <sqlite3-placeholders>` for more details.
Expand Down