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 e8001bb commit 3431c87Copy full SHA for 3431c87
spec/mysql2/statement_spec.rb
@@ -128,6 +128,14 @@
128
expect(test_result['decimal_test']).to eql(123.45)
129
end
130
131
+ it "should warn but still work if cache_rows is set to false" do
132
+ @client.query_options.merge!(:cache_rows => false)
133
+ statement = @client.prepare 'SELECT 1'
134
+ result = nil
135
+ expect { result = statement.execute.to_a }.to output(/:cache_rows is forced for prepared statements/).to_stderr
136
+ expect(result.length).to eq(1)
137
+ end
138
+
139
context "utf8_db" do
140
before(:each) do
141
@client.query("DROP DATABASE IF EXISTS test_mysql2_stmt_utf8")
0 commit comments