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.
dpiStmt_getInfo() returns incorrect information about
merge.I made a test program.
https://gist.github.com/kubo/d8b623072b755edd508896940be86e81
It printed:
Merge is DML but
isDMLis 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_MERGEis not in OCI manual.I hope that the Oracle team says 16 is the statement type of merge.