db_qd_internal_store_cache (private)
db_qd_internal_store_cache fullquery
Defined in packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl
Store in Cache. The load_location is the file where this query was found.
- Parameters:
- fullquery (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: # Check if it is compatible at all! set rdbms [db_fullquery_get_rdbms $fullquery] if {![db_rdbms_compatible_p $rdbms [db_current_rdbms]]} { # The query isn't compatible, probably because of a too high version ns_log Warning "Query [db_fullquery_get_name $fullquery] has rdbms info $rdbms" "which is not compatible with system rdbms [db_current_rdbms]" return } # # GN: the code below could be improved for NaviServer, but it is # not performance-critical. # set name [db_fullquery_get_name $fullquery] # db_qd_log QDDebug "Query $name is compatible! fullquery = $fullquery, name = $name" # If we already have a query for that name, we need to # figure out which one is *most* compatible. if {[nsv_exists OACS_FULLQUERIES $name]} { set old_fullquery [nsv_get OACS_FULLQUERIES $name] set fullquery [db_qd_pick_most_specific_query [db_current_rdbms] $old_fullquery $fullquery] } nsv_set OACS_FULLQUERIES $name $fullqueryXQL Not present: Generic, PostgreSQL, Oracle