Changeset 18459 for gsdl/trunk


Ignore:
Timestamp:
2009-02-04T11:03:31+13:00 (15 years ago)
Author:
davidb
Message:

a space is being added to end of an mgpp query when it if formatted. This used to cause mgpp code to crash. Have fixed the mgpp code to be more tolerant, and marked the point in querytools.cpp where I believe the space is being unnessarily added (but haven't removed the line in case there some other reason why the space is needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/recpt/querytools.cpp

    r17796 r18459  
    788788      add_field_info(fieldpart, tag, type);
    789789      finalquery += fieldpart;
    790       finalquery.push_back(' ');
     790      finalquery.push_back(' '); 
    791791      fieldpart.clear();
    792792    }
     
    797797    finalquery += fieldpart;
    798798    fieldpart.clear();
    799     finalquery.push_back(' ');
     799
     800    // doesn't the following just leave a dangling space at the end ?? (used to make mgpp crash)
     801    // consider cutting this line
     802    finalquery.push_back(' ');
    800803  }
    801804
Note: See TracChangeset for help on using the changeset viewer.