New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DatabaseMetaData getDatabaseProductName() and getDatabaseProductVersion() return illogical / incorrect information [JDBC152] #193
Comments
Commented by: @mrotteveel Patch to achieve version formats as suggested (productname: Firebird 2.1, productversion: WI-V2.1.3.18185) Did not update associated test |
Modified by: @mrotteveelAttachment: Versionformat-patch.txt [ 11585 ] |
Commented by: @mrotteveel Just looked at TestGDSServerVersion. It looks like the version format changed between v1.5 and v2.1 (, replaced by -). Fix might need some additional work to support both formats |
Commented by: @mrotteveel New patch that takes into account both version formats. NOTE: This patch assumes minimum supported version is Java 1.4, as it uses java.util.regex which was introduced in 1.4. |
Modified by: @mrotteveelAttachment: Versionformat-patch-v2.txt [ 11587 ] |
Modified by: Roman Rokytskyy (rrokytskyy)Fix Version: Jaybird 2.2 [ 10053 ] timeestimate: 0 [ 0 ] timeoriginalestimate: 0 [ 0 ] |
Modified by: @mrotteveel |
Modified by: @mrotteveelassignee: Roman Rokytskyy [ rrokytskyy ] => Mark Rotteveel [ avalanche1979 ] |
Modified by: @mrotteveelstatus: Open [ 1 ] => In Progress [ 3 ] |
Commented by: @mrotteveel Committed change to generate more sensible version and product information. This also fixes JDBC115 |
Modified by: @mrotteveelstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: @mrotteveel
Is related to JDBC115
Attachments:
Versionformat-patch.txt
Versionformat-patch-v2.txt
The result of the DatabaseMetaData methods getDatabaseProductName() and getDatabaseProductVersion() return illogical / incorrect information.
On my local machine with Firebird v2.1.3 (x64) the calls return:
Product name: Firebird 2.1-WI-V2.1.3.18185 Firebird 2.1/tcp (Ramona)/P10
Product version: WI-V2.1.3.18185 Firebird 2.1-WI-V2.1.3.18185 Firebird 2.1/tcp (Ramona)/P10
I would expect the returned information to be:
Product name: Firebird 2.1
Product version: 2.1.3.18185 (or maybe WI-V2.1.3.18185, as it also provides the platform information)
Commits: 8191f5f
The text was updated successfully, but these errors were encountered: