Translations:Manual:$wgShowSQLErrors/3/en

When set to  (default) any database error message will also say "(SQL query hidden)" rather than showing the SQL which caused the error.