-
Notifications
You must be signed in to change notification settings - Fork 23
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
Problème de concaténation sur valeur vide #97
Comments
Ce n'est pas la peine d'utiliser NULLIF il est géré par la fonction CONCAT |
C'est plutôt s'il y a une chaîne vide, si c'est le cas concat_ws l'espace sera ajouté :
|
ok, effectivement. |
T'as complètement raison sur ce point |
OK, ajouter un script d'update nettoyant cela. |
Salut il faudrait modifier cette ligne qui concatène nom et prénom avec l'opérateur
||
UsersHub/data/usershub.sql
Line 308 in ff0f07a
par celle-ci
concat_ws(' '::text, upper(NULLIF(a.nom_role::text, ''::text)), NULLIF(a.prenom_role::text, ''::text)) AS nom_complet,
L'opérateur de concaténation
||
renvoi une chaîne vide si l'un ou l'autre est vide (ce qui peut arriver sur un prénom).The text was updated successfully, but these errors were encountered: