From 247676656fe77c8f8d5b3ef8674c7f47091ab61d Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 18 Dec 2022 13:17:28 +0100 Subject: [PATCH] Fix potential infinite recursion. --- modules/database/query_builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/database/query_builder.cpp b/modules/database/query_builder.cpp index 9ad5b742c..eab37ec1f 100644 --- a/modules/database/query_builder.cpp +++ b/modules/database/query_builder.cpp @@ -162,10 +162,10 @@ QueryBuilder *QueryBuilder::nvalues(const String ¶ms_str) { } QueryBuilder *QueryBuilder::nval(const String ¶m) { - return vals(escape(param)); + return this; } QueryBuilder *QueryBuilder::nsetp(const String &col, const String &escape_param) { - return setps(col, escape(escape_param)); + return this; } QueryBuilder *QueryBuilder::nwp(const String &col, const String &escape_param) {