dropcomments filter removes
comments from statements within the event data.
Row changes do not have comments, so the filter only has to change the
statement information, which is achieved by using a regular expression:
sqlOriginal = d.getQuery();
sqlNew = sqlOriginal.replaceAll("/\\*(?:.|[\\n\\r])*?\\*/","");
To handle the case where the statement could only be a comment, the
statement is removed: