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.
1 parent e58d027 commit 0faa0a7Copy full SHA for 0faa0a7
spec/mysql2/result_spec.rb
@@ -82,6 +82,11 @@
82
expect(result.first.object_id).not_to eql(result.first.object_id)
83
end
84
85
+ it "should be able to iterate a second time even if cache_rows is disabled" do
86
+ result = @client.query "SELECT 1 UNION SELECT 2", :cache_rows => false
87
+ expect(result.to_a).to eql(result.to_a)
88
+ end
89
+
90
it "should yield different value for #first if streaming" do
91
result = @client.query "SELECT 1 UNION SELECT 2", :stream => true, :cache_rows => false
92
expect(result.first).not_to eql(result.first)
0 commit comments