From 7b52c11a1807044272d206adb6ede1bba7cec542 Mon Sep 17 00:00:00 2001 From: Torndeco Date: Tue, 7 Mar 2017 02:52:21 +0000 Subject: [PATCH] Update exile.ini Optimize Query --- exile.ini | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/exile.ini b/exile.ini index 5748fa8..c58dce1 100644 --- a/exile.ini +++ b/exile.ini @@ -522,10 +522,9 @@ SQL1_INPUTS = 1,2 OUTPUT = 1 [loadTerritory] -SQL1_1 = SET @connector = ?; -SQL2_1 = SELECT id,owner_uid,name,position_x,position_y,position_z,radius, level,flag_texture,flag_stolen,flag_stolen_by_uid,last_paid_at,build_rights,moderators,deleted_at,(SELECT COUNT(*)FROM construction c WHERE c.territory_id = @connector) FROM territory WHERE id = @connector +SQL1_1 = SELECT id,owner_uid,name,position_x,position_y,position_z,radius, level,flag_texture,flag_stolen,flag_stolen_by_uid,last_paid_at,build_rights,moderators,deleted_at,(SELECT COUNT(*)FROM construction c WHERE c.territory_id = ?) FROM territory WHERE id = ? -SQL1_INPUTS = 1 +SQL1_INPUTS = 1,1 OUTPUT = 1,2-STRING,3-STRING,4,5,6,7,8,9-STRING,10,11-STRING,12-STRING,13,14,15,16 [setTerritoryLevel]