Skip to main content

strip_sql_comments

Function strip_sql_comments 

Source
pub fn strip_sql_comments(s: &str) -> String
Expand description

/* … */ (and MySQL’s /*! … */) become a space: un/**/ion → un ion stays harmless, union/**/select → union select is caught.