combine printExtendedSQL and printSQL methods into one
The printExtendedSQL and printSQL methods of QuerySpecification can be combined
into one method that works like printExtendedSQL but takes all of its parameters
except for doctype from the returnfield tag in the pathquery document.
#1 Updated by Chad Berkley about 19 years ago
At this time, I think it is better to leave the two methods seperate. It is
cleaner to do it this way because even if there are no return fields, if the
query is successful certain fields (from xml_documents) will be returned. Also,
since each method is querying from a different table, combining the queries will
make the functionality less clear in the code and may result in a less efficient
query. We can revisit this at a later time if necessary.