From a2b2faa6019572388248617d0ac740bde95feb74 Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Fri, 26 Feb 2021 13:44:08 +0000
Subject: [PATCH] PostgreSQL: support binary data PostgreSQl: add database pool
---
include/qtl_common.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/include/qtl_common.hpp b/include/qtl_common.hpp
index 4b7996c..e447f37 100644
--- a/include/qtl_common.hpp
+++ b/include/qtl_common.hpp
@@ -1158,6 +1158,14 @@
overflow();
}
+ void swap(blobbuf& other)
+ {
+ std::swap(m_buf, other.m_buf);
+ std::swap(m_size, other.m_size);
+ std::swap(m_pos, other.m_pos);
+
+ std::streambuf::swap(other);
+ }
protected:
virtual pos_type seekoff(off_type off, std::ios_base::seekdir dir,
--
Gitblit v1.9.3