Sha256: df83f38f0e706112c179d009108f5c947f49faeec3fd85378f49cd70a305c5dd
Contents?: true
Size: 604 Bytes
Versions: 2
Compression:
Stored size: 604 Bytes
Contents
module Jdbc module Postgres VERSION = "8.3.604" def self.require_driver_jar vers = VERSION.split( '.' ) vers << jdbc_version require( "postgresql-%s.%s-%s.jdbc%d.jar" % vers ) end # JDBC version 4 if Java >=1.6, else 3 def self.jdbc_version vers = Java::java.lang.System::get_property( "java.specification.version" ) vers = vers.split( '.' ).map { |v| v.to_i } ( ( vers <=> [ 1, 6 ] ) >= 0 ) ? 4 : 3 end end end if RUBY_PLATFORM =~ /java/ Jdbc::Postgres::require_driver_jar else warn "jdbc-postgres is only for use with JRuby" end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
saturnflyer-activerecord-jdbc-adapter-0.9.3 | drivers/postgres/lib/jdbc/postgres.rb |
jdbc-postgres-8.3.604 | lib/jdbc/postgres.rb |