Project

General

Profile

« Previous | Next » 

Revision 2364

Added by sgarg over 19 years ago

Added code to check for NaN valuse which converting string to double.

View differences:

DBSAXNode.java
146 146
        connection.increaseUsageCount(1);
147 147
        MetaCatUtil.debugMessage("INSERTING DOCNAME: " + nodename, 35);
148 148
      } else {
149
          if(data != null && !data.trim().equals("")){
149
          if(data != null && !data.trim().equals("")
150
             && !data.trim().equals("NaN")){
150 151
              try{
151 152
                  double numberData = Double.parseDouble(data);
152 153
                  pstmt = connection.prepareStatement(

Also available in: Unified diff