Bug #39463
queryset "pending" quand pas de statut correspondant
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
02 février 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Ça va faire une requête invalide, genre :
Exception: type = '<class 'psycopg2.ProgrammingError'>', value = 'syntax error at or near ")" LINE 1: ...o_signalement_voirie_test_1 WHERE status != 'draft' AND ( ) ^
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 4 ans
- Fichier 0001-criterias-handle-empty-Or-statements-39463.patch 0001-criterias-handle-empty-Or-statements-39463.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Benjamin Dauvergne il y a environ 4 ans
- Statut changé de Solution proposée à Solution validée
Logiquement je ne sais pas si c'est la bonne solution (dans le cas st.And([]) ça donnerait ( TRUE )
pour avoir un comportement symétrique ? je m'interroge), mais ça corrige le bug.
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 80c8c10718037011f0cc71ce4d6d541436e0ad38 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Sun Feb 2 12:27:03 2020 +0100 criterias: handle empty Or statements (#39463)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
criterias: handle empty Or statements (#39463)