What are the valid "types" for sc_sql_protect

Hello All,

Does anyone use sc_sql_protect(Value, “Type”, “Connection”)?

What are the types allowed?

“varchar” doesn’t seem to work (not sure if it makes sense to even use that) and the code below inserts hello into the database despite not being a date:

$data = "hello";

sc_exec_sql("insert into debug (dump1) values (".sc_sql_protect($data, 'date').")");

I guess it’s job is strictly SQL-injection protection not type-checking :upside_down_face: