Skip to content

Commit

Permalink
Using predefined BOOST definition to handle compilation on multiple p…
Browse files Browse the repository at this point in the history
…latforms
  • Loading branch information
cstiborg committed Aug 16, 2024
1 parent 9ff2fc0 commit bd9e7ce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backends/postgresql/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ std::vector<std::string> get_schema_names(PGconn * conn)
}
break;
}
[[fallthrough]];
BOOST_FALLTHROUGH;
default:
schema.push_back(search_path_content[0]);
}
Expand All @@ -97,7 +97,6 @@ std::vector<std::string> get_schema_names(PGconn * conn)
schema_name = PQgetvalue(current_user, 0, 0);
}
}
PQclear(current_user);
}

// Assure no bad characters
Expand All @@ -123,7 +122,6 @@ std::vector<std::string> get_schema_names(PGconn * conn)
delete[] escaped_user;
}
}
PQclear(current_user);
schema_names.push_back("public");
}

Expand Down

0 comments on commit bd9e7ce

Please sign in to comment.