Execute an Update Operation should be Long instead of Integer
fsalem opened this issue · 2 comments
The latest R2DBC dependancies expect update operation to return Long. The current implementation of Kotysa return Integer instead.
java.lang.Exception: Error in acquiring lock: java.lang.ClassCastException: class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')
at org.ufoss.kotysa.r2dbc.SqlClientUpdateR2dbc$Return.execute$suspendImpl(SqlClientUpdateR2dbc.kt:87)
at org.ufoss.kotysa.r2dbc.SqlClientUpdateR2dbc$Return$execute$1.invokeSuspend(SqlClientUpdateR2dbc.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)