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 1281d46 commit 1a0a124Copy full SHA for 1a0a124
ext/mysql2/statement.c
@@ -56,7 +56,9 @@ static void rb_raise_mysql2_stmt_error(VALUE self) {
56
GET_STATEMENT(self);
57
{
58
GET_CLIENT(stmt_wrapper->client);
59
+#ifdef HAVE_RUBY_ENCODING_H
60
conn_enc = rb_to_encoding(wrapper->encoding);
61
+#endif
62
}
63
64
rb_raise_mysql2_stmt_error2(stmt_wrapper->stmt
spec/mysql2/statement_spec.rb
@@ -125,7 +125,7 @@
125
result.to_a.should == [{"整数"=>1}]
126
end
127
128
- end
+ end if defined? Encoding
129
130
context "streaming result" do
131
it "should be able to stream query result" do
0 commit comments