Bug #74620
recherche digest avec un entier (UndefinedFunction: operator does not exist: text = integer)
Début:
16 février 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/106397/
UndefinedFunction: operator does not exist: text = integer LINE 1: ... 'draft' AND anonymised IS NULL AND digests->>'default' = 14 ^ HINT: No operator matches the given name and argument types. You might need to add explicit type casts. (13 additional frame(s) were not displayed) ... File "wcs/data_sources.py", line 967, in get_card_structured_value_by_id values = CardDef.get_data_source_items(self.type, get_by_text=option_id) File "wcs/carddef.py", line 248, in get_data_source_items for x in carddef.data_class().select(clause=criterias, order_by=order_by, limit=limit) File "wcs/sql.py", line 714, in f return func(*args, **kwargs) File "wcs/sql.py", line 2296, in select return list(objects) File "wcs/sql.py", line 2253, in select_iterator cur.execute(sql_statement, parameters)
On arrive a prioir là après avoir cherché sur base de l'id et ne rien avoir trouvé.
Révisions associées
Historique
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/120
- Titre : WIP: cards: do not pass integer in get_by_text (#74620)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/120/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/120
- Titre : cards: do not pass integer in get_by_text (#74620)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/120/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
cards: do not pass integer in get_by_text (#74620)