mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
dbms: more logging in MySQLDictionarySource [#METR-17508].
This commit is contained in:
parent
6448560938
commit
8d8fa9d0fd
@ -65,6 +65,8 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
Logger * log = &Logger::get("MySQLDictionarySource");
|
||||
|
||||
mysqlxx::DateTime getLastModification() const
|
||||
{
|
||||
const auto Update_time_idx = 12;
|
||||
@ -74,6 +76,9 @@ private:
|
||||
{
|
||||
auto connection = pool.Get();
|
||||
auto query = connection->query("SHOW TABLE STATUS LIKE '%" + strconvert::escaped_for_like(table) + "%';");
|
||||
|
||||
LOG_TRACE(log, query.str());
|
||||
|
||||
auto result = query.use();
|
||||
|
||||
if (auto row = result.fetch())
|
||||
@ -144,6 +149,8 @@ private:
|
||||
writeChar(';', out);
|
||||
}
|
||||
|
||||
LOG_TRACE(log, query);
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user