mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #13491: Fix many errors in sqlite3 documentation
Initial patch by Johannes Vogel.
This commit is contained in:
parent
2640b52237
commit
1ca93954e1
10 changed files with 29 additions and 52 deletions
|
@ -472,14 +472,10 @@ Cursor Objects
|
|||
kinds of placeholders: question marks (qmark style) and named placeholders
|
||||
(named style).
|
||||
|
||||
This example shows how to use parameters with qmark style:
|
||||
Here's an example of both styles:
|
||||
|
||||
.. literalinclude:: ../includes/sqlite3/execute_1.py
|
||||
|
||||
This example shows how to use the named style:
|
||||
|
||||
.. literalinclude:: ../includes/sqlite3/execute_2.py
|
||||
|
||||
:meth:`execute` will only execute a single SQL statement. If you try to execute
|
||||
more than one statement with it, it will raise a Warning. Use
|
||||
:meth:`executescript` if you want to execute multiple SQL statements with one
|
||||
|
@ -761,7 +757,7 @@ and constructs a :class:`Point` object from it.
|
|||
::
|
||||
|
||||
def convert_point(s):
|
||||
x, y = map(float, s.split(";"))
|
||||
x, y = map(float, s.split(b";"))
|
||||
return Point(x, y)
|
||||
|
||||
Now you need to make the :mod:`sqlite3` module know that what you select from
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue