#3418 PMA_detectSize()

3.4.1
fixed
nobody
5
2014-08-18
2011-09-01
K_Reverter
No

when $curr_type == DECIMAL and last_cumulative_type==VARCHAR
code bellow :

if \($size\[M\] >= $last\_cumulative\_size\) \{
            return $size\[M\];

} else {
return $last_cumulative_size;
}

shuld be changed to:

if \($size\[M\]+1 >= $last\_cumulative\_size\) \{
            return $size\[M\]+1;

} else {
return $last_cumulative_size;
}

Is it true?

Discussion

  • Marc Delisle

    Marc Delisle - 2011-09-24
    • summary: PMA_getDecimalSize BUG --> PMA_detectSize()
     
  • Marc Delisle

    Marc Delisle - 2011-11-28

    Could you attach here the file you were trying to import, to help test this situation?

     
  • K_Reverter

    K_Reverter - 2011-11-29

    I'm sorry ,The import file is lost.
    But when I import the excel,The float field data lose precision

     
  • Marc Delisle

    Marc Delisle - 2011-12-12

    Please reopen when you have a test file to submit.

     
  • Marc Delisle

    Marc Delisle - 2011-12-12
    • status: open --> closed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed --> fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks