Merge from branche 1.1 : Correction batch suite à changement structure sql
This commit is contained in:
commit
a97b6a01d6
@ -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'],
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user