Correction requete SQL

This commit is contained in:
Michael RICOIS 2016-11-14 09:58:54 +01:00
parent 44a7dfe039
commit c5846ba88d

View File

@ -157,7 +157,7 @@ if ($opts->ftp) {
echo "Selection de fichier non traité entre $dateIn2 et $dateIn1\n";
$sql = "SELECT * FROM sdv1.flux_filein WHERE client=:client
AND name=:prestation AND depotType=:typeDepot AND dateInsert BETWEEN dateIn2 AND dateIn1
AND name=:prestation AND depotType=:typeDepot AND dateInsert BETWEEN :dateIn2 AND :dateIn1
ORDER BY dateInsert DESC LIMIT 0,1";
$stmt = $conn->prepare($sql);
$stmt->bindValue('client', 'fransbonhomme');
@ -282,7 +282,7 @@ if (count($tabFichLigneCmd) > 0) {
// --- Ecriture nombre d'entités total du fichier d'entrée
if ($opts->ftp) {
$conn->update('sdv&.flux_filein', array('nbLines' => $nbLinesTotal),
$conn->update('sdv1.flux_filein', array('nbLines' => $nbLinesTotal),
array('id' => $p->id));
}