-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
What is the link to the documentation section that needs improving?
"Using the Oracle Database 21c JSON Type in python-oracledb" section and its example (json_direct.py).
python-oracledb/doc/src/user_guide/json_data_type.rst
Lines 69 to 71 in c5c6b4f
data = [ (5, dict(name="Sally", dept="Sales", location="France")), ] python-oracledb/samples/json_blob.py
Line 65 in c5c6b4f
data = dict(name="Rod", dept="Sales", location="Germany")
Describe the confusion
The following examples are using the dictionary differently.
data = [
(5, dict(name="Sally", dept="Sales", location="France")),
]
...
cursor.execute(insert_sql, [1, data])
data = dict(name="Rod", dept="Sales", location="Germany")
...
cursor.execute(insert_sql, [1, data])
Suggest changes that would help
I hope to know which is the right way. Thank you.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request