From c3db1148400678abd6fa914a5f2b197badc36e5e Mon Sep 17 00:00:00 2001 From: Yutaro Sakamoto Date: Fri, 6 Oct 2023 17:56:30 +0900 Subject: [PATCH] [Fix]: fix ocesqlPreparedCursorDeclare --- dblibj/src/main/scala/Cursor.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }