Update for PRC8 parity
Update for PRC8 parity. Full compile.
This commit is contained in:
@@ -300,7 +300,7 @@ void Array_Erase(string tag, int index, object obj=OBJECT_INVALID)
|
||||
// if not found, return INVALID_INDEX
|
||||
int Array_Find_Str(string tag, string element, object obj=OBJECT_INVALID)
|
||||
{
|
||||
string stmt = "SELECT IFNULL(MIN(ind),@invalid_index) FROM "+GetTableName(tag, obj)+" WHERE value = @element";
|
||||
string stmt = "SELECT IFNULL(PRCMin(ind),@invalid_index) FROM "+GetTableName(tag, obj)+" WHERE value = @element";
|
||||
sqlquery sqlQuery = SqlPrepareQueryObject(GetModule(), stmt);
|
||||
SqlBindInt(sqlQuery, "@invalid_index", INVALID_INDEX);
|
||||
SqlBindString(sqlQuery, "@element", element);
|
||||
|
||||
Reference in New Issue
Block a user