mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 04:13:43 +03:00
Fixed interactive sessions docs examples
This commit is contained in:
parent
16d96fd43c
commit
49af4fe539
|
@ -223,7 +223,7 @@ the SQL string that would be sent to the database.
|
|||
proper SQL literals::
|
||||
|
||||
>>> cur.mogrify("SELECT %s, %s, %s;", (None, True, False))
|
||||
>>> 'SELECT NULL, true, false;'
|
||||
'SELECT NULL, true, false;'
|
||||
|
||||
.. _adapt-numbers:
|
||||
|
||||
|
@ -237,7 +237,7 @@ the SQL string that would be sent to the database.
|
|||
the PostgreSQL numerical representation::
|
||||
|
||||
>>> cur.mogrify("SELECT %s, %s, %s, %s;", (10, 10L, 10.0, Decimal("10.00")))
|
||||
>>> 'SELECT 10, 10, 10.0, 10.00;'
|
||||
'SELECT 10, 10, 10.0, 10.00;'
|
||||
|
||||
.. _adapt-string:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user