Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error migration: 0033_auto_20220929_0840 #3307

Closed
amandine-sahl opened this issue Oct 18, 2022 · 3 comments
Closed

Error migration: 0033_auto_20220929_0840 #3307

amandine-sahl opened this issue Oct 18, 2022 · 3 comments

Comments

@amandine-sahl
Copy link
Contributor

Lors de la migration 0033_auto_20220929_0840 une erreur est levée quand il y a une simple quote dans le champ participant number

psycopg2.errors.SyntaxError: syntax error at or near "après"
LINE 1: ... 'Participants: 50 max le matin, 15 par atelier l'après midi...

Peut être que se serait plus simple de laisser le sql faire tout seul

"UPDATE tourism_touristicevent SET practical_info_{} = CONCAT(practical_info_{} , " Participants: ", participant_number)  WHERE id='{}';".format(lang, lang, id)
@camillemonchicourt
Copy link
Member

Ah mince, il faut revoir cette migration ? Ou en ajouter une nouvelle ?

@Chatewgne
Copy link
Contributor

Corrigé ici en échappant le contenu de participant_number dans la query :

#3311

en cours de publication dans la release 2.89.1

@camillemonchicourt
Copy link
Member

Merci.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants