Issue Details (XML | Word | Printable)

Key: JDBC-268
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Mark Rotteveel
Reporter: Mark Rotteveel
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
Jaybird JCA/JDBC Driver

Characterset support is case-sensitive

Created: 19/Aug/12 08:05 AM   Updated: 21/Feb/13 08:10 PM
Component/s: None
Affects Version/s: Jaybird 2.2
Fix Version/s: Jaybird 2.2.1, Jaybird 3.0.0

Issue Links:

 Description  « Hide
The characterset support in Jaybird (at least in org.firebirdsql.encodings.EncodingFactory is case-sensitive. This means that (java) characterset Cp1252 will match, but cp1252 will not.

Eg connecting with jdbc:firebirdsql://localhost:3051/D:/temp/testdb.fdb?charSet=UTF-8 will work, but with
jdbc:firebirdsql://localhost:3051/D:\\temp\\testdb.fdb?charSet=utf-8 will result in the following exception:

Exception in thread "main" java.lang.RuntimeException: Cannot get the value for this argument type as a string
at org.firebirdsql.gds.impl.wire.ParameterBufferBase$Argument.getValueAsString(
at org.firebirdsql.gds.impl.wire.ParameterBufferBase.getArgumentAsString(
at org.firebirdsql.jca.FBManagedConnection.<init>(
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(
at org.firebirdsql.jdbc.FBDataSource.getConnection(
at org.firebirdsql.jdbc.AbstractDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at jdbc94.TestJDBC94.main(

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Mark Rotteveel added a comment - 19/Aug/12 12:03 PM
Commited change to trunk to address both this and JDBC-267. I do think it needs a little bit more polish before it can go to Jaybird 2.2.1 as well.