Skip to content

Commit

Permalink
Percent escaping note
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed Mar 26, 2021
1 parent 50dcc16 commit 368f949
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ Of course queries can and should be parameterized to avoid SQL injections:
... )
[('2018-10-21', 3)]
Percent symbols in inlined constants should be doubled if you mix constants
with ``%`` symbol and ``%(x)s`` parameters.

.. code-block:: python
>>> client.execute(
... "SELECT 'test' like '%%es%%', %(x)s",
... {'x': 1}
... )
Customisation ``SELECT`` output with ``FORMAT`` clause is not supported.

.. _execute-with-progress:
Expand Down

0 comments on commit 368f949

Please sign in to comment.