We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e78c91 + ebcfd62 commit e833524Copy full SHA for e833524
lib/sqlite3/database.rb
@@ -395,6 +395,9 @@ def step( *args )
395
396
def finalize
397
super(@ctx)
398
+ result = @ctx.result
399
+ @ctx = FunctionProxy.new
400
+ result
401
end
402
})
403
proxy.ctx = FunctionProxy.new
test/test_integration.rb
@@ -499,6 +499,10 @@ def test_create_aggregate_without_block
499
500
value = @db.get_first_value( "select accumulate(a) from foo" )
501
assert_equal 6, value
502
+
503
+ # calling #get_first_value twice don't add up to the latest result
504
+ value = @db.get_first_value( "select accumulate(a) from foo" )
505
+ assert_equal 6, value
506
507
508
def test_create_aggregate_with_block
0 commit comments