implemented specialization of data types via type traits and handling of embedded non-trivial types
This commit is contained in:
@@ -94,7 +94,11 @@ size_t postgres_connection::execute(const std::string &stmt)
|
||||
|
||||
throw_postgres_error(res, conn_, "postgres", stmt);
|
||||
|
||||
return sql::to_long_long(PQcmdTuples(res));
|
||||
const auto affected_rows = sql::to_long_long(PQcmdTuples(res));
|
||||
|
||||
PQclear(res);
|
||||
|
||||
return affected_rows;
|
||||
}
|
||||
|
||||
sql::data_type_t string2type(const char *type)
|
||||
|
||||
Reference in New Issue
Block a user