mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Fix warnings (#422)
This commit is contained in:
parent
9fc07ef757
commit
b965b2a1df
@ -38,7 +38,7 @@
|
||||
|
||||
#include "detail/prepared_statement_handle.h"
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4800) // int to bool
|
||||
#endif
|
||||
namespace sqlpp
|
||||
|
@ -33,6 +33,7 @@
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include <pg_config.h>
|
||||
#include <libpq-fe.h>
|
||||
|
||||
#include <sqlpp11/postgresql/visibility.h>
|
||||
@ -299,8 +300,15 @@ namespace sqlpp
|
||||
case PGRES_FATAL_ERROR:
|
||||
Err = PQresultErrorMessage(m_result);
|
||||
break;
|
||||
#if PG_MAJORVERSION_NUM >= 13
|
||||
case PGRES_COPY_BOTH:
|
||||
case PGRES_SINGLE_TUPLE:
|
||||
#endif
|
||||
#if PG_MAJORVERSION_NUM >= 14
|
||||
case PGRES_PIPELINE_SYNC:
|
||||
case PGRES_PIPELINE_ABORTED:
|
||||
#endif
|
||||
default:
|
||||
throw sqlpp::exception("pqxx::result: Unrecognized response code " +
|
||||
std::to_string(PQresultStatus(m_result)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user