summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output/pq')
-rw-r--r--lib/output/pq/updateDatabase.cpp2
-rw-r--r--lib/output/pq/updateDatabase.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/output/pq/updateDatabase.cpp b/lib/output/pq/updateDatabase.cpp
index e5cd8d8..eb912d8 100644
--- a/lib/output/pq/updateDatabase.cpp
+++ b/lib/output/pq/updateDatabase.cpp
@@ -27,7 +27,9 @@
#include <streamSupport.h>
namespace MyGrate::Output::Pq {
+#ifndef __cpp_aggregate_paren_init
ColumnDef::ColumnDef(std::string n, std::size_t o, bool p) : name {std::move(n)}, ordinal(o), is_pk(p) { }
+#endif
UpdateDatabase::UpdateDatabase(const char * const str, uint64_t s) : UpdateDatabase {PqConn {str}, s} { }
diff --git a/lib/output/pq/updateDatabase.h b/lib/output/pq/updateDatabase.h
index 130e4a7..bc3a6bc 100644
--- a/lib/output/pq/updateDatabase.h
+++ b/lib/output/pq/updateDatabase.h
@@ -13,7 +13,9 @@ namespace MyGrate::Input {
}
namespace MyGrate::Output::Pq {
struct ColumnDef {
+#ifndef __cpp_aggregate_paren_init
ColumnDef(std::string, std::size_t, bool);
+#endif
std::string name;
std::size_t ordinal;