From 2388f47664014140603dd82e56a0e462aeda10da Mon Sep 17 00:00:00 2001 From: hzq Date: Tue, 2 Jan 2024 14:10:56 +0800 Subject: [PATCH] add orm endsub --- vendor/httpserver/include/mysqlmodel.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vendor/httpserver/include/mysqlmodel.hpp b/vendor/httpserver/include/mysqlmodel.hpp index 2cae7685..6d181920 100755 --- a/vendor/httpserver/include/mysqlmodel.hpp +++ b/vendor/httpserver/include/mysqlmodel.hpp @@ -1729,6 +1729,17 @@ class mysqlclientDB : public base return *mod; } + model &endsub() + { + if (iskuohao == true) + { + iskuohao = false; + ishascontent = false; + wheresql.append(" )"); + } + return *mod; + } + model &limit(unsigned int num) { limitsql.clear();