diff options
| author | 2013-11-18 23:04:43 +0100 | |
|---|---|---|
| committer | 2013-11-18 23:04:43 +0100 | |
| commit | e2d4f1a7214591a47a46272a7a62e320eea029ce (patch) | |
| tree | bb028ce493c74247e771c623d0a3f13ca4981ec2 /app/models/Entry.php | |
| parent | 082246d13f524aa646d5aedf49ae7e3b6c621d6c (diff) | |
SQL : identifiant entier automatique pour les catégories et les flux
Implémentation de
https://github.com/marienfressinaud/FreshRSS/issues/262
La catégorie par défaut à le numéro 1.
Les numéros de catégories et de flux sont automatiques (1, 2, 3...)
L'installeur semble marcher.
Diffstat (limited to 'app/models/Entry.php')
| -rwxr-xr-x | app/models/Entry.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php index 052e5abff..684b1921a 100755 --- a/app/models/Entry.php +++ b/app/models/Entry.php @@ -217,8 +217,12 @@ class EntryDAO extends Model_pdo { } else { $info = $stm->errorInfo(); if ((int)($info[0] / 1000) !== 23) { //Filter out "SQLSTATE Class code 23: Constraint Violation" because of expected duplicate entries - Minz_Log::record ('SQL error ' . $info[0] . ': ' . $info[1] . ' ' . $info[2], Minz_Log::ERROR); - } + Minz_Log::record ('SQL error ' . $info[0] . ': ' . $info[1] . ' ' . $info[2] + . ' while adding entry in feed ' . $valuesTmp['id_feed'] . ' with title: ' . $valuesTmp['title'], Minz_Log::ERROR); + } /*else { + Minz_Log::record ('SQL error ' . $info[0] . ': ' . $info[1] . ' ' . $info[2] + . ' while adding entry in feed ' . $valuesTmp['id_feed'] . ' with title: ' . $valuesTmp['title'], Minz_Log::DEBUG); + }*/ return false; } } @@ -272,7 +276,6 @@ class EntryDAO extends Model_pdo { . 'WHERE e.id=?'; $values = array ($is_read ? 1 : 0, $id); $stm = $this->bd->prepare ($sql); - if ($stm && $stm->execute ($values)) { return $stm->rowCount(); } else { |
