mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 10:28:34 +00:00
Database.Format destination buffer should not be marked const (#1714)
(cherry picked from commit 358bcca3a2)
This commit is contained in:
parent
38bece1bb2
commit
c7890c1f15
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user