Thanks for reporting the issue and providing a fix.
In the changes, org.apache.commons.dbcp.DelegatingPreparedStatement is not in the current set of dbUnit dependencies. Is it part of your test setup? As is, we can't apply this.
Please let me know your setup and next suggestions.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for reporting the issue and providing a fix.
In the changes, org.apache.commons.dbcp.DelegatingPreparedStatement is not in the current set of dbUnit dependencies. Is it part of your test setup? As is, we can't apply this.
Please let me know your setup and next suggestions.
Delegating prepared statement comes from https://commons.apache.org/proper/commons-dbcp/. Fix that I provided is a hack. You should never downcast that statement. That code should be agnostic to jdbc driver.
See https://docs.oracle.com/cd/B14117_01/server.101/b10749/ch7progrunicode.htm, section "Using the SQL NCHAR Datatypes Without Changing the Code"
If you are interested, please provide a test(s) and patch.