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 aa74392 commit 66dba82Copy full SHA for 66dba82
spec/mysql2/result_spec.rb
@@ -78,6 +78,11 @@
78
result.first.object_id.should_not eql(result.first.object_id)
79
end
80
81
+ it "should be able to iterate a second time even if cache_rows is disabled" do
82
+ result = @client.query "SELECT 1 UNION SELECT 2", :cache_rows => false
83
+ result.to_a.should eql(result.to_a)
84
+ end
85
+
86
it "should yield different value for #first if streaming" do
87
result = @client.query "SELECT 1 UNION SELECT 2", :stream => true, :cache_rows => false
88
result.first.should_not eql(result.first)
0 commit comments