Selaa lähdekoodia

* Merged changes up to eAthena 15090.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15929 54d463be-8e91-2dee-dedb-b68131a5f0ec
eathenabot 13 vuotta sitten
vanhempi
commit
a8dd6428de
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 3 3
      doc/script_commands.txt
  2. 1 1
      src/map/script.c

+ 3 - 3
doc/script_commands.txt

@@ -6399,10 +6399,10 @@ to query the server log tables.
 
 ---------------------------------------
 
-*escape_sql("<string>")
+*escape_sql(<value>)
 
-Escapes special characters in the string, so that it is safe to use in query_sql(), 
-and returns the escaped form of the given string.
+Converts the value to a string and escapes special characters so that it is safe to use in query_sql().
+Returns the escaped form of the given value.
 
 Example 1:
 	set .@str$, "John's Laptop";

+ 1 - 1
src/map/script.c

@@ -16210,7 +16210,7 @@ struct script_function buildin_func[] = {
 	BUILDIN_DEF(axtoi,"s"),
 	BUILDIN_DEF(query_sql,"s*"),
 	BUILDIN_DEF(query_logsql,"s*"),
-	BUILDIN_DEF(escape_sql,"s"),
+	BUILDIN_DEF(escape_sql,"v"),
 	BUILDIN_DEF(atoi,"s"),
 	// [zBuffer] List of player cont commands --->
 	BUILDIN_DEF(rid2name,"i"),