Ticket #270 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

(select|insert|update)pattern ne fonctionnent pas correctement

Reported by: _Erika_ Assigned to:
Priority: high Milestone: Jelix 1.0beta3
Component: jelix:dao Version: trunk
Severity: major Keywords: SVN-578
Cc: Php version: 5.2.4
Review: Hosting Provider:
Documentation needed: Blocking:

Description

Lorsqu'un fichier XML de formulaire jForm contient un champ virtuel (qui n'existe pas en base mais qui est calculé pour un SELECT), qui a pour attribut insertpattern="" et updatepattern="", jDao inclut quand même ce champ dans la requête SQL générée.

exemple :

<property name="needpassword" datatype="int" required="false" selectpattern="CASE WHEN LENGTH(password) = 0 THEN 1 ELSE 0 END" insertpattern="" updatepattern=""/>

requête :

UPDATE "sys_users" SET "login"= 'azerty', "password"= , "firstname"= 'hélène4', "lastname"= 'paulé', "email"= 'aaa@fff.com', "company"= 'éà', "roles"= 8, "locked"= 1, "deleted"= NULL, "createdby"= NULL, "createdwhen"= NULL, "lastmodifiedby"= NULL, "lastmodifiedwhen"= NULL, "needpassword"= NULL where "id"=12

Le fichier compilé contient '%s' pour insertpattern et updatepattern, alors qu'il devrait être vide/null...

Change History

09/14/07 15:31:50 changed by laurentj

  • priority changed from normal to high.
  • status changed from new to closed.
  • resolution set to fixed.
  • severity changed from normal to major.
  • milestone set to Jelix 1.0beta3.

Corrigé dans le trunk et la beta 3. Merci :-)

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed