Update for PRC8 parity
Update for PRC8 parity. Full compile.
This commit is contained in:
@@ -306,7 +306,7 @@ int Array_Find_Str(string tag, string element, object obj=OBJECT_INVALID)
|
||||
// Just create it before trying to select in case it doesn't exist yet.
|
||||
CreateArrayTable(tag, obj);
|
||||
|
||||
stmt = "SELECT IFNULL(MIN(ind),@invalid_index) FROM "+GetTableName(tag, obj)+" WHERE value = @element";
|
||||
stmt = "SELECT IFNULL(PRCMin(ind),@invalid_index) FROM "+GetTableName(tag, obj)+" WHERE value = @element";
|
||||
sqlQuery = SqlPrepareQueryObject(GetModule(), stmt);
|
||||
|
||||
SqlBindInt(sqlQuery, "@invalid_index", INVALID_INDEX);
|
||||
|
||||
Reference in New Issue
Block a user