Skip to content

Commit

Permalink
Tweak test_json skipped message
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Feb 23, 2013
1 parent 3918662 commit addf062
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backends/postgresql/test/test-postgresql.cpp
Expand Up @@ -584,7 +584,7 @@ void test_bytea()
assert(bin2 == "\\x0d0c0b0a");
}
}
std::cout << "test_bytea passed" << std::endl;
std::cout << "test bytea passed" << std::endl;
}

// DDL Creation objects for common tests
Expand Down Expand Up @@ -639,7 +639,6 @@ struct table_creator_json : public table_creator_base
}
};


// Return 9,2 for 9.2.3
typedef std::pair<int,int> server_version;

Expand Down Expand Up @@ -677,16 +676,17 @@ void test_json()
{
sql << "insert into soci_json_test (data) values(:data)",use(invalid_input);
}
catch(soci_error &_exception)
catch(soci_error& e)
{
(void)e;
exception = true;
}
assert(exception);
std::cout << "test json passed" << std::endl;
}
else
{
std::cout << "json only available for PSQL server >= 9.2. Found version: " << version.first << "." << version.second << std::endl;
std::cout << "test json skipped (PostgreSQL >= 9.2 required, found " << version.first << "." << version.second << ")" << std::endl;
}
}

Expand Down

0 comments on commit addf062

Please sign in to comment.