From 77f999f810a9c803134ac4b5a9c15b3f9af53315 Mon Sep 17 00:00:00 2001 From: Erik Minekus Date: Mon, 14 Feb 2022 13:39:03 +0100 Subject: [PATCH] Database.Format destination buffer should not be marked const (#1714) --- plugins/include/dbi.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/include/dbi.inc b/plugins/include/dbi.inc index 23dbe9aa..14af3e44 100644 --- a/plugins/include/dbi.inc +++ b/plugins/include/dbi.inc @@ -393,7 +393,7 @@ methodmap Database < Handle // @param format Formatting rules. // @param ... Variable number of format parameters. // @return Number of cells written. - public native int Format(const char[] buffer, int maxlength, const char[] format, any ...); + public native int Format(char[] buffer, int maxlength, const char[] format, any ...); // Returns whether a database is the same connection as another database. public native bool IsSameConnection(Database other); @@ -664,7 +664,7 @@ native bool SQL_EscapeString(Handle database, * @param ... Variable number of format parameters. * @return Number of cells written. */ -native int SQL_FormatQuery(Handle database, const char[] buffer, int maxlength, const char[] format, any ...); +native int SQL_FormatQuery(Handle database, char[] buffer, int maxlength, const char[] format, any ...); /** * This function is deprecated. Use SQL_EscapeString instead.