Skip to content

Commit

Permalink
factory.cpp: fix latest clang -Wstring-concatenation (false positive)…
Browse files Browse the repository at this point in the history
… warning
  • Loading branch information
rouault committed Aug 15, 2021
1 parent 4468e2b commit 88322b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/iso19111/factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,9 +1145,8 @@ std::vector<std::string> DatabaseContext::Private::getDatabaseStructure() {
: "db_0.");
const auto sqlBegin("SELECT sql||';' FROM " + dbNamePrefix +
"sqlite_master WHERE type = ");
const char *const objectTypes[] = {"'table' AND "
"name NOT LIKE 'sqlite_stat%'",
"'view'", "'trigger'"};
const char *tableType = "'table' AND name NOT LIKE 'sqlite_stat%'";
const char *const objectTypes[] = {tableType, "'view'", "'trigger'"};
std::vector<std::string> res;
for (const auto &objectType : objectTypes) {
const auto sqlRes = run(sqlBegin + objectType);
Expand Down

0 comments on commit 88322b4

Please sign in to comment.