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
1 changed files with 0 additions and 2 deletions

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); args.sql = rb_str_export_to_enc(args.sql, conn_enc);
#endif #endif
Check_Type(args.sql, T_STRING);
Data_Get_Struct(self, MYSQL, client); Data_Get_Struct(self, MYSQL, client);
REQUIRE_OPEN_DB(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); str = rb_str_export_to_enc(str, conn_enc);
#endif #endif
Check_Type(str, T_STRING);
oldLen = RSTRING_LEN(str); oldLen = RSTRING_LEN(str);
char escaped[(oldLen*2)+1]; char escaped[(oldLen*2)+1];