Fix tox -e docs

Change-Id: Iee6cfd370fbd11a311535a73c230d45a699b13e3
This commit is contained in:
Assaf Muller 2016-02-24 17:58:45 -05:00
parent 3f153b485a
commit 5b9d294ce6

View File

@ -182,15 +182,17 @@ Document common pitfalls as well as good practices done during database developm
a wrong use of ResultProxy.inserted_primary_key for example):
.. code:: python
e.execute("create table if not exists foo (bar integer)")
e.execute(foo.insert().values(bar=1))
e.execute(foo.insert().values(bar=[2]))
The 2nd insert should crash (list provided, integer expected). It crashs at
The 2nd insert should crash (list provided, integer expected). It crashes at
least with mysql and postgresql backends, but succeeds with pymysql because
it transforms them into:
.. code:: sql
INSERT INTO foo (bar) VALUES (1)
INSERT INTO foo (bar) VALUES ((2))