diff --git a/dblibj/src/main/scala/Cursor.scala b/dblibj/src/main/scala/Cursor.scala index 97229f4..8d3f9a1 100644 --- a/dblibj/src/main/scala/Cursor.scala +++ b/dblibj/src/main/scala/Cursor.scala @@ -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) } }