Menu

#2608 WHERE clause with broken decimals in grid updates

Fixed
nobody
None
Broken
Defect
2012-02-12
2011-11-15
Anonymous
No

Originally created by: igavi...@gmail.com

What exact steps will reproduce the problem?
1. Create table with field LINEA Decimal (5,1) collation utf8_general_ci
2. Update table with grid
3. The UPDATE SQL no format the field Decimal

What was the expected output?
UPDATE `rossplantilla` SET `documento`='CASHMONEDASSA' WHERE  `linea`=63.0

What happened instead?
UPDATE `rossplantilla` SET `documento`='CASHMONEDASSA' WHERE  `linea`=630

Suggested fix (optional)?
View fix issue 3962

Version used?
HeidiSQL revision: 6.0.0.3966
MySQL Server version: 5.1.53
Operating system: Windows XP

Related

Tickets: #2608
Tickets: #2867

Discussion

  • Anonymous

    Anonymous - 2011-11-15

    Originally posted by: a...@anse.de

    What did you put into the field? I can't revert [r3962] to fix this problem while breaking again issue #2558.

    Status: WontFix

     

    Related

    Commit: [r3962]
    Tickets: #2558

  • Anonymous

    Anonymous - 2011-11-16

    Originally posted by: igavi...@gmail.com

    With MYSQL and regional settings spanish (decimal point is ,), when update a field with decimals in grid, the UPDATE trim the ,. Sample:

    Campo1 (Decimal (5,1)), value 2.4 when update the sentence is UPDATE `prueba` SET `campo1`=2.4 WHERE  `campo1`=23 AND `texto`='prueba' LIMIT 1;

    and generate error 0 rows update when that sould havee been 1, see error.jpg

     
  • Anonymous

    Anonymous - 2011-11-16

    Originally posted by: igavi...@gmail.com

    Sorry, the previous value of Campo1 is 2.3 the new value is 2.4 (in Grid), the SQL generate by HeidiSQL is:

    UPDATE `prueba` SET `campo1`=2.4 WHERE  `campo1`=23 AND `texto`='prueba' LIMIT 1;

    the correct SQL should be

    UPDATE `prueba` SET `campo1`=2.4 WHERE  `campo1`=2.3 AND `texto`='prueba' LIMIT 1;

    Thanks

     
  • Anonymous

    Anonymous - 2011-11-16

    Originally posted by: a...@anse.de

    Ah, so the WHERE clause is now broken, not the SET clause. Will check that.

    Summary: SET clause with broken decimals in grid updates
    Labels: Severity-Broken
    Status: Accepted

     
  • Anonymous

    Anonymous - 2011-11-26

    Originally posted by: a...@anse.de

    (No comment was entered for this change.)

    Summary: WHERE clause with broken decimals in grid updates

     
  • Anonymous

    Anonymous - 2012-02-07

    Originally posted by: igavi...@gmail.com

    Hello,

       Is there any date to solve the bug 2608 (2011/11/16).
       Thanks for your great work

     

    Related

    Tickets: #2608