Skip to content

Commit 31ffac6

Browse files
committed
Fix some insert specs mostly fauling due arity change of exec_insert method
1 parent 648b769 commit 31ffac6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/arjdbc/postgresql/adapter.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,7 @@ def check_version # :nodoc:
429429
end
430430
end
431431

432-
433-
def exec_insert(sql, name = nil, binds = [], pk = nil, sequence_name = nil)
432+
def exec_insert(sql, name = nil, binds = [], pk = nil, sequence_name = nil, returning: nil) # :nodoc:
434433
val = super
435434
if !use_insert_returning? && pk
436435
unless sequence_name

rakelib/02-test.rake

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_task_for(adapter, options = {})
4040
test_task.libs.push *FileList["activerecord-jdbc#{adapter}*/lib"]
4141
end
4242
test_task.libs << 'test'
43-
test_task.options = '--use-color=t'
43+
test_task.options = '--use-color=t --progress-style=mark'
4444
test_task.verbose = true if $VERBOSE
4545
yield(test_task) if block_given?
4646
end

0 commit comments

Comments
 (0)