1. removed the call to QuerySpecification.printAttributeSQL() from QuerySpecification.printExtendedSQL() 2. in QuerySpecification.printExtendedSQL() if ( returnFieldList.size() == 0 ) then it returns null 3. DBQuery.addReturnfield() doesnt execute the element query if printExtendedSQL returns null
1. removed the call to QuerySpecification.printAttributeSQL() from QuerySpecification.printExtendedSQL()
2. in QuerySpecification.printExtendedSQL() if ( returnFieldList.size() == 0 ) then it returns null
3. DBQuery.addReturnfield() doesnt execute the element query if printExtendedSQL returns null