Skip to content

Commit 556a0e1

Browse files
committed
fix variable access
1 parent 7c17137 commit 556a0e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysql2/result.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,11 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
961961
rb_warn("cacheRows is ignored if streaming is true");
962962
}
963963

964-
if (wrapper->stmt && !args.cacheRows && !args.streaming) {
964+
if (wrapper->stmt && !cacheRows && !wrapper->is_streaming) {
965965
rb_warn("cacheRows is forced for prepared statements (if not streaming)");
966966
}
967967

968-
if (wrapper->stmt && !args.cast) {
968+
if (wrapper->stmt && !cast) {
969969
rb_warn("cast is forced for prepared statements");
970970
}
971971

0 commit comments

Comments
 (0)