WSL/SLF GitLab Repository

Commit 0d0e62ea authored by Thomas Egger's avatar Thomas Egger
Browse files

PSQLIO: Bugfix, when reading meta data forgot to check whether input or output section is relevant

parent ca97e12b
......@@ -268,7 +268,8 @@ void PSQLIO::readAssimilationData(const Date& /*date_in*/, Grid2DObject& /*da_ou
void PSQLIO::readMetaData(const std::string& query, std::vector<StationData>& vecStation, const bool& input)
{
if (!input_configured) throw IOException("Please configure all necessary parameters in the [Input] section", AT);
if (input && !input_configured) throw IOException("Please configure all necessary parameters in the [Input] section", AT);
if (!input && !output_configured) throw IOException("Please configure all necessary parameters in the [Output] section", AT);
PGresult *result = sql_exec(query, input);
if (result) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment