Skip to content

Commit 96317ea

Browse files
authored
Merge pull request #1053 from dr-itz/rails61-dev
Rails 6.1 dev
2 parents 5415be6 + e2d040d commit 96317ea

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

lib/arjdbc/postgresql/adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def quote_table_name(name)
503503
alias_method :quote_schema_name, :quote_column_name
504504

505505
# Need to clear the cache even though the AR adapter doesn't for some reason
506-
def remove_column(table_name, column_name, type = nil, options = {})
506+
def remove_column(table_name, column_name, type = nil, **options)
507507
super
508508
clear_cache!
509509
end

lib/arjdbc/sqlite3/adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def add_column(table_name, column_name, type, **options) #:nodoc:
262262
end
263263
end
264264

265-
def remove_column(table_name, column_name, type = nil, options = {}) #:nodoc:
265+
def remove_column(table_name, column_name, type = nil, **options) #:nodoc:
266266
alter_table(table_name) do |definition|
267267
definition.remove_column column_name
268268
definition.foreign_keys.delete_if do |_, fk_options|
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# The tests below verify that no query is executed. AR-JDBC doesn't actually execute
3+
# the queries, but fails during binding the params, just like AR would. The difference
4+
# is in logging. AR only logs _after_ the binds are setup, AR-JDBC logs the whole
5+
# block since everything is done in Java...
6+
#
7+
exclude :test_find_with_large_number, 'different order in ARJDBC gives false positive'
8+
exclude :test_find_by_with_large_number, 'different order in ARJDBC gives false positive'
9+
exclude :test_find_by_id_with_large_number, 'different order in ARJDBC gives false positive'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# The tests below verify that no query is executed. AR-JDBC doesn't actually execute
3+
# the queries, but fails during binding the params, just like AR would. The difference
4+
# is in logging. AR only logs _after_ the binds are setup, AR-JDBC logs the whole
5+
# block since everything is done in Java...
6+
#
7+
exclude :test_find_with_large_number, 'different order in ARJDBC gives false positive'
8+
exclude :test_find_by_with_large_number, 'different order in ARJDBC gives false positive'
9+
exclude :test_find_by_id_with_large_number, 'different order in ARJDBC gives false positive'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# The tests below verify that no query is executed. AR-JDBC doesn't actually execute
3+
# the queries, but fails during binding the params, just like AR would. The difference
4+
# is in logging. AR only logs _after_ the binds are setup, AR-JDBC logs the whole
5+
# block since everything is done in Java...
6+
#
7+
exclude :test_find_with_large_number, 'different order in ARJDBC gives false positive'
8+
exclude :test_find_by_with_large_number, 'different order in ARJDBC gives false positive'
9+
exclude :test_find_by_id_with_large_number, 'different order in ARJDBC gives false positive'

0 commit comments

Comments
 (0)