From 9b81cdebba95f1b6e687191c630c1f8f6cf0df16 Mon Sep 17 00:00:00 2001
From: znone <glyc@sina.com.cn>
Date: Thu, 25 Mar 2021 12:44:30 +0000
Subject: [PATCH] PostgreSQL: Support asynchronous operation Fix bug in different versions of asio
---
include/qtl_mysql.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/qtl_mysql.hpp b/include/qtl_mysql.hpp
index a8ffb34..1ab6929 100644
--- a/include/qtl_mysql.hpp
+++ b/include/qtl_mysql.hpp
@@ -3,6 +3,7 @@
#include <mysql.h>
#include <errmsg.h>
+
#include <time.h>
#include <memory.h>
#include <assert.h>
@@ -1187,7 +1188,7 @@
#if MARIADB_VERSION_ID >= 100000
-int event_flags(int status) NOEXCEPT
+inline int event_flags(int status) NOEXCEPT
{
int flags = 0;
if (status&MYSQL_WAIT_READ)
@@ -1199,7 +1200,7 @@
return flags;
}
-int mysql_status(int flags) NOEXCEPT
+inline int mysql_status(int flags) NOEXCEPT
{
int status = 0;
if (flags&event::ef_read)
--
Gitblit v1.9.3