Changeset 18459 for gsdl

Show
Ignore:
Timestamp:
04.02.2009 11:03:31 (11 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)

Files:
1 modified

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