File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,14 +287,17 @@ Cusor object methods
287287 Cursor.execute(operation, params)
288288
289289 *operation * is a string and *params *, if specified, is a simple value, a
290- tuple, or ``None ``.
290+ tuple, a dict, or ``None ``.
291291
292292 Performs the operation against the database, possibly replacing parameter
293293 placeholders with provided values. This should be preferred method of
294294 creating SQL commands, instead of concatenating strings manually, what makes
295- a potential of `SQL Injection attacks `_. This method accepts the same
296- formatting as Python's builtin :ref: `string interpolation operator
297- <python:string-formatting>`.
295+ a potential of `SQL Injection attacks `_. This method accepts formatting similar
296+ to Python's builtin :ref: `string interpolation operator
297+ <python:string-formatting>`. However, since formatting and type conversion is handled
298+ internally, only the ``%s `` placeholder is supported.
299+
300+ Keyed placeholders are supported if you provide a dict for *params *.
298301
299302 If you call ``execute() `` with one argument, the ``% `` sign loses its
300303 special meaning, so you can use it as usual in your query string, for
You can’t perform that action at this time.
0 commit comments