From 22442903b65bb09500865a99038d4a0a1c744ad6 Mon Sep 17 00:00:00 2001 From: benoitpotier Date: Thu, 13 Apr 2017 17:00:12 +0200 Subject: [PATCH] fix sourceJalPdf : add select id --- bin/sourceJalPdf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sourceJalPdf.php b/bin/sourceJalPdf.php index 5f148c4a..351e4f90 100644 --- a/bin/sourceJalPdf.php +++ b/bin/sourceJalPdf.php @@ -85,7 +85,7 @@ if ($opts->cron) { $fileDate = date('Ymd', filectime($filePath)); $isInsert = false; - $jalSql = "SELECT pdfName FROM octde.jalpdfsed WHERE pdfName=:file"; + $jalSql = "SELECT id, pdfName FROM octde.jalpdfsed WHERE pdfName=:file"; $jalStmt = $conn->prepare($jalSql); $jalStmt->bindValue('file', $fileName); $jalStmt->execute();