瀏覽代碼

* Fixed buildin_query_sql using Sql_Query instead of Sql_QueryStr, wrongly processing all %f,%d,... (fixes bureport:218)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11809 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS 17 年之前
父節點
當前提交
83fb3336e7
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/script.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/11/26
+	* Fixed buildin_query_sql using Sql_Query instead of Sql_QueryStr, making 
+	  all %f,%d,... be processed. (fixes bureport:218) [FlavioJS]
 	* Fixed guild expulsion not working correctly [ultramage]
 	* Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c). [FlavioJS]
 2007/11/25

+ 1 - 1
src/map/script.c

@@ -11588,7 +11588,7 @@ BUILDIN_FUNC(query_sql)
 
 	// Execute the query
 	query = script_getstr(st,2);
-	if( SQL_ERROR == Sql_Query(mmysql_handle, query) )
+	if( SQL_ERROR == Sql_QueryStr(mmysql_handle, query) )
 	{
 		Sql_ShowDebug(mmysql_handle);
 		script_pushint(st, 0);