Skip to content

Commit ed746a1

Browse files
committed
Use query option symbols rather than internal variable names in rb_warn calls
1 parent e1b3cc5 commit ed746a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/mysql2/result.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,15 +867,15 @@ static VALUE rb_mysql_result_each(int argc, VALUE * argv, VALUE self) {
867867
cast = RTEST(rb_hash_aref(opts, sym_cast));
868868

869869
if (wrapper->is_streaming && cacheRows) {
870-
rb_warn("cacheRows is ignored if streaming is true");
870+
rb_warn(":cache_rows is ignored if :stream is true");
871871
}
872872

873873
if (wrapper->stmt && !cacheRows && !wrapper->is_streaming) {
874-
rb_warn("cacheRows is forced for prepared statements (if not streaming)");
874+
rb_warn(":cache_rows is forced for prepared statements (if not streaming)");
875875
}
876876

877877
if (wrapper->stmt && !cast) {
878-
rb_warn("cast is forced for prepared statements");
878+
rb_warn(":cast is forced for prepared statements");
879879
}
880880

881881
dbTz = rb_hash_aref(opts, sym_database_timezone);

0 commit comments

Comments
 (0)