Skip to content

Commit

Permalink
Fix startup sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
miyurud committed Aug 25, 2023
1 parent e7071b2 commit e02803b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/JasmineGraphServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2631,6 +2631,11 @@ void JasmineGraphServer::addInstanceDetailsToPerformanceDB(std::string host, std
}

hostString = hostString.substr(0, hostString.length() - 1);

if (hostString.length() == 0) {
return;
}

insertPlaceQuery = insertPlaceQuery + hostString;

this->performanceSqlite.runInsert(insertPlaceQuery);
Expand Down

0 comments on commit e02803b

Please sign in to comment.