no need to Check_Type in these spots since we're using StringValuePtr as well

This commit is contained in:
Brian Lopez 2010-07-09 09:59:48 -07:00
parent 5cc79feb35
commit 645b9a1bef

View File

@ -227,7 +227,6 @@ static VALUE rb_mysql_client_query(int argc, VALUE * argv, VALUE self) {
args.sql = rb_str_export_to_enc(args.sql, conn_enc);
#endif
Check_Type(args.sql, T_STRING);
Data_Get_Struct(self, MYSQL, client);
REQUIRE_OPEN_DB(client);
@ -273,7 +272,6 @@ static VALUE rb_mysql_client_escape(VALUE self, VALUE str) {
str = rb_str_export_to_enc(str, conn_enc);
#endif
Check_Type(str, T_STRING);
oldLen = RSTRING_LEN(str);
char escaped[(oldLen*2)+1];