Skip to content

information about merge statement #40

@kubo

Description

@kubo

dpiStmt_getInfo() returns incorrect information about merge.

I made a test program.
https://gist.github.com/kubo/d8b623072b755edd508896940be86e81
It printed:

SQL: merge info ...
  isQuery: 0
  isPLSQL: 0
  isDDL: 0
  isDML: 0
  statementType: 16
  isReturning: 0

Merge is DML but isDML is zero and statementType is a value not listed here.
In this example the statement is not a valid SQL but it returns same results even for valid statements.

Well, I cannot say that this is a bug due to odpi. That's because OCI_STMT_MERGE is not in OCI manual.
I hope that the Oracle team says 16 is the statement type of merge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions