Fix tox -e docs
Change-Id: Iee6cfd370fbd11a311535a73c230d45a699b13e3
This commit is contained in:
parent
3f153b485a
commit
5b9d294ce6
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user