| 1585 | |
| 1586 | |
| 1587 | static String getCleanQueryAst(const ASTPtr q, ContextPtr context) |
| 1588 | { |
| 1589 | String res = q->formatWithSecretsOneLine(); |
| 1590 | if (auto masker = SensitiveDataMasker::getInstance()) |
| 1591 | masker->wipeSensitiveData(res); |
| 1592 | |
| 1593 | res = res.substr(0, context->getSettingsRef()[Setting::log_queries_cut_to_length]); |
| 1594 | |
| 1595 | return res; |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | void InsertDependenciesBuilder::logQueryView(StorageID view_id, std::exception_ptr exception, bool before_start) const |
no test coverage detected