Former-commit-id: 8c424908b64391585954bd72c65eb8572df4915b
This commit is contained in:
zhiru 2019-06-30 14:05:45 +08:00 committed by jinhai
parent 7bc5873743
commit f41a834b92

View File

@ -1247,7 +1247,7 @@ namespace meta {
// }
Query getSizeQuery = connectionPtr->query();
getSizeQuery << "SELECT SUM(size) AS sum " <<
getSizeQuery << "SELECT IFNULL(SUM(size),0) AS sum " <<
"FROM TableFiles " <<
"WHERE file_type <> " << std::to_string(TableFileSchema::TO_DELETE) << ";";