db_qd_internal_parse_one_query (private)
db_qd_internal_parse_one_query parsing_state
Defined in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl
Parse one query using the query state
- Parameters:
- parsing_state (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Find the index that we're looking at lassign $parsing_state index node_list parsed_doc default_rdbms file_path # BASE CASE if {[llength $node_list] <= $index} { # Clean up xml_doc_free $parsed_doc # db_qd_log QDDebug "Cleaning up, done parsing" # return nothing return "" } # Get one query set one_query_xml [lindex $node_list $index] # increase index incr index # Update the parsing state so we know # what to parse next set parsing_state [list $index $node_list $parsed_doc $default_rdbms $file_path] # Parse the actual query from XML set one_query [db_qd_internal_parse_one_query_from_xml_node $one_query_xml $default_rdbms $file_path] # Return the query and the parsing state return [list $one_query $parsing_state]XQL Not present: Generic, PostgreSQL, Oracle