google-code-backups / eude

Automatically exported from code.google.com/p/eude
0 stars 0 forks source link

Tri eau et batiment #162

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Description du bogue:
Mauvais tri de l'eau et des bâtiments.

Passer les 2 en int ou refaire le tri via php ?

Original issue reported on code.google.com by XCharism...@gmail.com on 25 May 2010 at 12:34

GoogleCodeExporter commented 8 years ago
Comment ça "mauvais" ?

en int, moins php en fait, mieux c'est.

Original comment by Alex10336@gmail.com on 25 May 2010 at 12:46

GoogleCodeExporter commented 8 years ago
Ba l'erreur basique de la chaine de caractère trié sur mysql

1
10
2
20
3 ...

Original comment by XCharism...@gmail.com on 25 May 2010 at 12:48

GoogleCodeExporter commented 8 years ago
Ah, en effet. a changer comme les troupes arrivé là....

Original comment by Alex10336@gmail.com on 25 May 2010 at 12:50

GoogleCodeExporter commented 8 years ago
Je vais regarder s'il n'y a pas moyen de contourner sa.

Original comment by Alex10336@gmail.com on 25 May 2010 at 12:50

GoogleCodeExporter commented 8 years ago
Les troop sont déjà en int ^^

Original comment by XCharism...@gmail.com on 25 May 2010 at 12:53

GoogleCodeExporter commented 8 years ago
un requête de ce genre rectif le tir:
SELECT UNIX_TIMESTAMP(a.DATE) as udate,a.*,b.* from SQL_PREFIX_Coordonnee a 
left outer 
join SQL_PREFIX_Coordonnee_Planetes b on (a.ID=b.pID) WHERE 1=1 ORDER BY 
water+0 DESC 
LIMIT 0,20

Original comment by Alex10336@gmail.com on 25 May 2010 at 12:56

GoogleCodeExporter commented 8 years ago

Original comment by Alex10336@gmail.com on 25 May 2010 at 1:07

GoogleCodeExporter commented 8 years ago
Semble pas fonctionner ta requête, enfin si, mais elle renvoie uniquement les
planètes à 90% d'eau

Affichage des enregistrements 0 - 19 (20 total, Traitement en 0.0017 sec.)
Sur plus de 65000 enregistrements.

Original comment by XCharism...@gmail.com on 25 May 2010 at 1:12

GoogleCodeExporter commented 8 years ago
En passant tant quand est dans les tri/recherche, faudrait peut etre ajouter un
select avant les troupes retournant < ou > pour recherche + ou moins de soldat 
et
peut être rajouter une cellule de recherche de l'eau avec le même select.

T'en penses quoi ?

Original comment by XCharism...@gmail.com on 25 May 2010 at 1:18

GoogleCodeExporter commented 8 years ago
Entre tel et tel valeur ?

Yeap, aussi. d'autre truc a revoir a ce niveau.

(j'le passe en fonctionnalité du coup)

Original comment by Alex10336@gmail.com on 25 May 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Ou entre tel et tel si tu veux t'amuser à en mettre 2

Faudrais que je matte l'import des planètes aussi, pour bloquer l'import si 
les %
sont mis en base, éviter que les nom remplace les %

Original comment by XCharism...@gmail.com on 25 May 2010 at 1:45

GoogleCodeExporter commented 8 years ago
ALTER TABLE `SQL_PREFIX_Coordonnee` CHANGE `water` `water` TINYINT( 3 ) NULL 
DEFAULT NULL;

Original comment by Alex10336@gmail.com on 8 Jul 2010 at 1:15