Placeholders count not thread safe
Eastwo00d opened this issue · comments
Hi,
I noticed an issue when the driver is used by several threads at a time to perform queries with placeholders: the placeholders count is not thread safe as it is stored statically, thus it can be wrong when the driver checks the index of a placeholder value and an exception SQL like this is triggered:
Caused by: java.sql.SQLException: Parameter index out of range
Please consider my suggested patch as attachment