Fixes #9424: modeSql: skip if it starts with '#'

Merged Carsten Rose requested to merge B9424modeSqlComment into master

Merge request reports