Skip to content

Commit

Permalink
Add jdbcpostgresql support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Huned Botee committed Mar 6, 2014
1 parent 8e1608a commit b8f0b8f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Gemfile
Expand Up @@ -13,7 +13,9 @@ end

platforms :jruby do
gem "jdbc-mysql"
gem "jdbc-postgres"
gem "activerecord-jdbcmysql-adapter"
gem "activerecord-jdbcpostgresql-adapter"
end

# Support libs
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -13,7 +13,7 @@ namespace :display do
end
task :default => ["display:notice"]

ADAPTERS = %w(mysql mysql2 em_mysql2 jdbcmysql postgresql sqlite3 seamless_database_pool mysqlspatial mysql2spatial spatialite postgis)
ADAPTERS = %w(mysql mysql2 em_mysql2 jdbcmysql jdbcpostgresql postgresql sqlite3 seamless_database_pool mysqlspatial mysql2spatial spatialite postgis)
ADAPTERS.each do |adapter|
namespace :test do
desc "Runs #{adapter} database tests."
Expand Down
@@ -0,0 +1,6 @@
require "active_record/connection_adapters/postgresql_adapter"
require "activerecord-import/adapters/postgresql_adapter"

class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
include ActiveRecord::Import::PostgreSQLAdapter
end
1 change: 1 addition & 0 deletions test/adapters/jdbcpostgresql.rb
@@ -0,0 +1 @@
ENV["ARE_DB"] = "jdbcpostgresql"
6 changes: 6 additions & 0 deletions test/jdbcpostgresql/import_test.rb
@@ -0,0 +1,6 @@
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

#require File.expand_path(File.dirname(__FILE__) + '/../support/postgresql/assertions')
require File.expand_path(File.dirname(__FILE__) + '/../support/postgresql/import_examples')

should_support_postgresql_import_functionality

0 comments on commit b8f0b8f

Please sign in to comment.