Merge from branche 1.1 : Correction batch suite à changement structure sql

This commit is contained in:
Michael RICOIS 2012-03-05 15:34:14 +00:00
commit a97b6a01d6

View File

@ -73,11 +73,11 @@ foreach($keys as $key) {
//Lecture
$sql = 'SELECT MIN('.$key.') AS min, MAX('.$key.') AS max FROM etablissements_act';
$dbMetier->setFetchMode(Zend_Db::FETCH_ASSOC);
$result = $stmt->fetchAll($sql);
$result = $dbMetier->fetchAll($sql);
//Insertion
$data = array(
'key' => $key,
'cle' => $key,
'min' => $result['min'],
'max' => $result['max'],
);