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_mysql.hpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/qtl_mysql.hpp b/include/qtl_mysql.hpp
index 1bcd2a1..a8ffb34 100644
--- a/include/qtl_mysql.hpp
+++ b/include/qtl_mysql.hpp
@@ -245,6 +245,13 @@
 		init_buffer(mode);
 	}
 
+	void swap(blobbuf& other)
+	{
+		std::swap(m_stmt, other.m_stmt);
+		std::swap(m_binder, other.m_binder);
+		std::swap(m_field, other.m_field);
+		qtl::blobbuf::swap(other);
+	}
 
 private:
 	MYSQL_STMT* m_stmt;

--
Gitblit v1.9.3