Skip to content

Commit

Permalink
Fix ocesqlPreparedCursorDeclare (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
yutaro-sakamoto authored Oct 6, 2023
1 parent 4638a37 commit 00237be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dblibj/src/main/scala/Cursor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ object Cursor {
setLibErrorStatus(OCDB_INVALID_STMT(), state)
}
case Some(prepare) => {
if (addCursorMapWithPrepare(id, cname_, prepare, state)) {
if (!addCursorMapWithPrepare(id, cname_, prepare, state)) {
setLibErrorStatus(OCDB_WARNING_PORTAL_EXISTS(), state)
}
}
Expand Down

0 comments on commit 00237be

Please sign in to comment.