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 478bba3 commit cf751c4Copy full SHA for cf751c4
spec/mysql2/result_spec.rb
@@ -139,9 +139,10 @@
139
it "should raise an exception if streaming ended due to a timeout" do
140
# Create an extra client instance, since we're going to time it out
141
client = Mysql2::Client.new DatabaseCredentials['root']
142
- client.query "CREATE TEMPORARY TABLE streamingTest (val VARCHAR(10))"
+ client.query "CREATE TEMPORARY TABLE streamingTest (val BINARY(255))"
143
144
# Insert enough records to force the result set into multiple reads
145
+ # (the BINARY type is used simply because it forces full width results)
146
10000.times do |i|
147
client.query "INSERT INTO streamingTest (val) VALUES ('Foo #{i}')"
148
end
0 commit comments