Skip to content

Commit 1595848

Browse files
authored
Merge pull request #1000 from dr-itz/52-dev
52.x fixes
2 parents 3855df1 + 40b6348 commit 1595848

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ matrix:
9292
mariadb: '10.1'
9393
env: DB=mariadb PREPARED_STATEMENTS=true
9494
# Rails test-suite :
95-
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.2" # PS off by default
96-
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.2" PREPARED_STATEMENTS=true
97-
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.2" DRIVER=MariaDB
98-
- env: DB=postgresql TEST_PREFIX="rails:" AR_VERSION="v5.2.2" # PS on by default
99-
- env: DB=postgresql TEST_PREFIX="rails:" AR_VERSION="v5.2.2" PREPARED_STATEMENTS=false
100-
- env: DB=sqlite3 TEST_PREFIX="rails:" AR_VERSION="v5.2.2"
95+
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.3" # PS off by default
96+
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.3" PREPARED_STATEMENTS=true
97+
- env: DB=mysql2 TEST_PREFIX="rails:" AR_VERSION="v5.2.3" DRIVER=MariaDB
98+
- env: DB=postgresql TEST_PREFIX="rails:" AR_VERSION="v5.2.3" # PS on by default
99+
- env: DB=postgresql TEST_PREFIX="rails:" AR_VERSION="v5.2.3" PREPARED_STATEMENTS=false
100+
- env: DB=sqlite3 TEST_PREFIX="rails:" AR_VERSION="v5.2.3"

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ end
5252

5353
group :rails do
5454
group :test do
55-
# FIX: Our test suite isn't ready to run in random order yet.
56-
gem 'minitest', '< 5.3.4', require: nil
55+
gem 'minitest', '~> 5.11.3', require: nil
5756
gem 'minitest-excludes', '~> 2.0.1', require: nil
5857
gem 'minitest-rg', require: nil
5958

lib/arjdbc/postgresql/oid_types.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ def extensions
3333
@extensions ||= super
3434
end
3535

36-
# @override
37-
def lookup_cast_type(sql_type)
38-
oid = execute("SELECT #{quote(sql_type)}::regtype::oid", "SCHEMA")
39-
super oid.first['oid'].to_i
40-
end
41-
4236
def get_oid_type(oid, fmod, column_name, sql_type = '') # :nodoc:
4337
if !type_map.key?(oid)
4438
load_additional_types([oid])

test/db/sqlite3/schema_dump_test.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ def test_excludes_sqlite_sequence
1010
end
1111

1212
def test_dumping_with_dot_in_table_name
13+
pend 'in recent Rails version, a.b means database table "b" in database "a". Delete test?'
14+
1315
connection.create_table('test.some_records') { |t| t.string :name }
1416
connection.add_index('test.some_records', :name, :unique => true)
1517
assert_equal 2, connection.columns('test.some_records').size
@@ -23,4 +25,4 @@ def test_dumping_with_dot_in_table_name
2325
end
2426
end
2527

26-
end
28+
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_preloading_too_many_ids, "works only with PS, fails in plain AR with MRI too" unless ActiveRecord::Base.connection.prepared_statements
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_preloading_too_many_ids, "works only with PS, fails in plain AR with MRI too" unless ActiveRecord::Base.connection.prepared_statements

0 commit comments

Comments
 (0)