Skip to content

Conflicting examples in JSON type direct binding #350

@ryotayamanaka

Description

@ryotayamanaka

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).

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions