developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 14 years ago
Closed 13 years ago
#142 closed enhancement (fixed)
Nouveau datatype dans les dao
Reported by: | yannick@… | Owned by: | laurentj |
---|---|---|---|
Priority: | normal | Milestone: | Jelix 1.0 RC1 |
Component: | jelix:dao | Version: | 1.0 beta1 |
Severity: | major | Keywords: | dao, datatype, boolean |
Cc: | Blocked By: | ||
Blocking: | Documentation needed: | ||
Hosting Provider: | Php version: |
Description
ca serait pas mal de pouvoir avoir un type boolean dans les type dispo sur les DAO. Du moins pour PostgreSQL. Actuellement, ça passe en string mais bon c'est dommage :)
Change History (5)
comment:1 Changed 14 years ago by laurentj
- Component changed from jelix to jelix:dao
- Milestone set to Jelix 1.0beta2
- Owner set to laurentj
- Status changed from new to assigned
- Type changed from new feature to enhancement
comment:2 Changed 14 years ago by laurentj
- Milestone changed from Jelix 1.0beta2 to Jelix 1.0beta3
comment:3 Changed 13 years ago by laurentj
- Milestone changed from Jelix 1.0beta3 to Jelix 1.0
comment:4 Changed 13 years ago by laurentj
Note conçernant mysql :
- les valeurs TRUE ou FALSE sont autorisées (assimilées à 0 ou 1)
- le type boolean n'existe que depuis la 4.1, et est assimilé à tinyint(1)
Note conçernant sqlite2 :
- il y a un type boolean mais c'est un champs text comme tout les autres types de champs
- apparement, pas de valeur TRUE ou FALSE
comment:5 Changed 13 years ago by laurentj
- Resolution set to fixed
- Status changed from assigned to closed
Support des booleens ajoutés dans le trunk
Note: See
TracTickets for help on using
tickets.
Note : pour les booleans dans les requêtes dans postgresql, il faut faire truc=TRUE, ou truc='t' (et FALSE et 'f')