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
Operations

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

Time Tracking:
Not Specified

Issue Links:
Relate
 


 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(ParameterBufferBase.java:185)
at org.firebirdsql.gds.impl.wire.ParameterBufferBase.getArgumentAsString(ParameterBufferBase.java:64)
at org.firebirdsql.jca.FBManagedConnection.<init>(FBManagedConnection.java:94)
at org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnection(FBManagedConnectionFactory.java:482)
at org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:120)
at org.firebirdsql.jdbc.AbstractDriver.connect(AbstractDriver.java:126)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at jdbc94.TestJDBC94.main(TestJDBC94.java:14)

 All   Comments   Work Log   Change History   Version Control   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.