From ea203f058750190e902f8220baa8c631770ccbb6 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 29 May 2012 23:53:02 +0100 Subject: [PATCH] Added %% use to the docs --- doc/src/usage.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/src/usage.rst b/doc/src/usage.rst index 22e2394f..fbc9e76a 100644 --- a/doc/src/usage.rst +++ b/doc/src/usage.rst @@ -97,6 +97,9 @@ many placeholders can use the same values:: ... VALUES (%(int)s, %(date)s, %(date)s, %(str)s);""", ... {'int': 10, 'str': "O'Reilly", 'date': datetime.date(2005, 11, 18)}) +When parameters are used, in order to include a literal ``%`` in the query you +can use the ``%%`` string. + While the mechanism resembles regular Python strings manipulation, there are a few subtle differences you should care about when passing parameters to a query: