Changeset 3703


Ignore:
Timestamp:
Aug 27, 2007, 10:03:12 AM (14 years ago)
Author:
Martin Svensson
Message:

Fixes the problem with '+' before the exponent (when its 0). The '+' sign is removed before proceed the
parsing. Java seems not be able to parse the exponent right, especially when it's 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4-stable/src/core/net/sf/basedb/core/Type.java

    r3679 r3703  
    467467        if (value.indexOf('e') >= 0)
    468468        {
    469           // Convert 'e' to 'E' (in scientific notation only 'E' is allowed) and try again
    470           return parseString(value.replace('e', 'E'), numberFormat, nullIfException);
     469          //Convert 'e' to 'E' (in scientific notation only 'E' is allowed) and try again         
     470          return parseString(value.replace('e', 'E').replace("E+", "E"), numberFormat, nullIfException);
    471471        }
    472472        else
Note: See TracChangeset for help on using the changeset viewer.