Skip to content

Commit c9ef244

Browse files
committed
Silence warnings about cache_rows being ignored
1 parent cf751c4 commit c9ef244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/mysql2/result_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
end
125125

126126
it "should not yield nil at the end of streaming" do
127-
result = @client.query('SELECT * FROM mysql2_test', :stream => true)
127+
result = @client.query('SELECT * FROM mysql2_test', :stream => true, :cache_rows => false)
128128
result.each { |r| r.should_not be_nil}
129129
end
130130

@@ -148,7 +148,7 @@
148148
end
149149

150150
client.query "SET net_write_timeout = 1"
151-
res = client.query "SELECT * FROM streamingTest", :stream => true
151+
res = client.query "SELECT * FROM streamingTest", :stream => true, :cache_rows => false
152152

153153
lambda {
154154
res.each_with_index do |row, i|

0 commit comments

Comments
 (0)