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.

Opened 10 years ago

Closed 10 years ago

#1440 closed bug (fixed)

jDao : bad sql generation for update methods

Reported by: laurentj Owned by:
Priority: highest Milestone: Jelix 1.2.7
Component: jelix:dao Version: 1.3.0
Severity: major Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

This clause :

<values>
     <value property="price" expr="$price" />
     <value property="price_big" expr="$price_big" />
</values>

Generates that:

, `price_big`= '.($price === null ? 'NULL' : jDb::floatToStr($price)).'_big,

instead of

, `price_big`= '.($price_big === null ? 'NULL' : jDb::floatToStr($price_big))....

It seems the bug appears only because there are two parameters begining by the same letters...

Change History (2)

comment:1 Changed 10 years ago by laurentj

  • Description modified (diff)
  • Severity changed from normal to major

comment:2 Changed 10 years ago by laurentj

  • Milestone changed from Jelix 1.3.1 to Jelix 1.2.7
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.