Subversion Repositories eFlore/Applications.cel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 2297 → Rev 2298

/branches/v2.4-fourche/jrest/lib/FormateurGroupeColonne.php
682,12 → 682,12
 
// Attention (en attendant de faire une meilleure table et une meilleure requete) le distinct est très important
$req = sprintf("SELECT DISTINCT referentiel, num_nom_retenu, %s FROM cel_references r" .
" INNER JOIN cel_obs c ON (r.num_nom_retenu = c.nom_ret_nn) AND r.referentiel = c.nom_referentiel " .
" WHERE c.id_observation IN (%s)",
//" AND catminat_code IS NOT NULL", // TODO: suppression des NULL ici signifie que le cache sera partiel...
implode(',', array_keys(self::$baseflor_col)),
implode(',', $obsids));
" INNER JOIN cel_obs c ON (r.num_nom_retenu = c.nom_ret_nn)" .
" AND r.referentiel = IF(LOCATE(':', c.nom_referentiel) = 0, c.nom_referentiel, SUBSTR(c.nom_referentiel FROM 1 FOR LOCATE(':', c.nom_referentiel) - 1))" .
" WHERE c.id_observation IN (%s)",
//" AND catminat_code IS NOT NULL", // TODO: suppression des NULL ici signifie que le cache sera partiel...
implode(',', array_keys(self::$baseflor_col)),
implode(',', $obsids));
$res = Cel::db()->requeter($req);
if(!$res) return NULL;
 
/branches/v2.4-fourche/jrest
Property changes:
Modified: svn:mergeinfo
Merged /trunk/jrest:r2297
/branches/v2.4-fourche/.
Property changes:
Modified: svn:mergeinfo
Merged /trunk:r2297