I ran into the problem that when I had queries prepared in the threads, the argument was passed to another prepared statement in the DBMS. Finally I found out that next-statement-id was not thread safe and caused this problem.
This commit added a lock to make sure that the closure variable next-id is thread safe.
I ran into the problem that when I had queries prepared in the threads, the argument was passed to another prepared statement in the DBMS. Finally I found out that
next-statement-id
was not thread safe and caused this problem.This commit added a lock to make sure that the closure variable
next-id
is thread safe.