Skip to content

Commit

Permalink
update Jaybird (Firebird JDBC driver) to 2.2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kares committed Feb 17, 2015
1 parent 69e8a88 commit 6c297c4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
11 changes: 11 additions & 0 deletions jdbc-firebird/History.txt
@@ -0,0 +1,11 @@
== 2.2.7

* Based on Jaybird 2.2.7 (see changes since 2.2.4)
http://www.firebirdsql.org/file/documentation/drivers_documentation/java/2.2.7/release_notes.html#__RefHeading__6537_1196219519

* jdk16 and jdk17 versions of jaybird jar are packed and used based on Java version

== 2.2.4

* Based on Jaybird 2.2.4
http://www.firebirdsql.org/file/documentation/drivers_documentation/java/2.2.7/release_notes.html#__RefHeading__4798_1756560361
12 changes: 11 additions & 1 deletion jdbc-firebird/lib/jdbc/firebird.rb
Expand Up @@ -5,7 +5,7 @@ module Jdbc
module Firebird

def self.driver_jar
"jaybird-#{DRIVER_VERSION}.jar"
"#{jdk_qualifier}/jaybird-#{DRIVER_VERSION}.jar"
end

def self.load_driver(method = :load)
Expand All @@ -27,6 +27,16 @@ def self.driver_name

private

def self.jdk_qualifier
version = ENV_JAVA[ 'java.specification.version' ]
version = version.split('.').last.to_i # '1.7' => 7
if version >= 7
'jdk17' # loading JDBC 4.1 version on JDK-8
else # JDBC >= 4.1
'jdk16'
end
end

@@connector_api = nil

def self.load_connector_api(method = :load)
Expand Down
2 changes: 1 addition & 1 deletion jdbc-firebird/lib/jdbc/firebird/version.rb
@@ -1,6 +1,6 @@
module Jdbc
module Firebird
DRIVER_VERSION = '2.2.4'
DRIVER_VERSION = '2.2.7'
VERSION = DRIVER_VERSION
end
end
Binary file not shown.
Binary file added jdbc-firebird/lib/jdk17/jaybird-2.2.7.jar
Binary file not shown.

0 comments on commit 6c297c4

Please sign in to comment.