summaryrefslogtreecommitdiff
path: root/libpqpp/pq-column.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-column.h')
-rw-r--r--libpqpp/pq-column.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/libpqpp/pq-column.h b/libpqpp/pq-column.h
index fa4a78a..4ef102d 100644
--- a/libpqpp/pq-column.h
+++ b/libpqpp/pq-column.h
@@ -24,8 +24,14 @@ namespace PQ {
const Oid oid;
// Buffer for PQunescapeBytea
- using BufPtr = std::unique_ptr<unsigned char, pq_deleter<PQfreemem>>;
- mutable BufPtr buf;
+ struct Buffer {
+ using BufPtr = std::unique_ptr<unsigned char, pq_deleter<PQfreemem>>;
+ size_t row {};
+ size_t length {};
+ BufPtr data;
+ };
+
+ mutable Buffer buffer;
};
}