MCPcopy Create free account
hub / github.com/MariaDB/server / print

Method print

sql/sql_select.cc:999–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999void vers_select_conds_t::print(String *str, enum_query_type query_type) const
1000{
1001 switch (orig_type) {
1002 case SYSTEM_TIME_UNSPECIFIED:
1003 break;
1004 case SYSTEM_TIME_AS_OF:
1005 start.print(str, query_type, STRING_WITH_LEN(" FOR SYSTEM_TIME AS OF "));
1006 break;
1007 case SYSTEM_TIME_FROM_TO:
1008 start.print(str, query_type, STRING_WITH_LEN(" FOR SYSTEM_TIME FROM "));
1009 end.print(str, query_type, STRING_WITH_LEN(" TO "));
1010 break;
1011 case SYSTEM_TIME_BETWEEN:
1012 start.print(str, query_type, STRING_WITH_LEN(" FOR SYSTEM_TIME BETWEEN "));
1013 end.print(str, query_type, STRING_WITH_LEN(" AND "));
1014 break;
1015 case SYSTEM_TIME_BEFORE:
1016 start.print(str, query_type, STRING_WITH_LEN(" FOR SYSTEM_TIME BEFORE "));
1017 break;
1018 case SYSTEM_TIME_HISTORY:
1019 // nothing to add
1020 break;
1021 case SYSTEM_TIME_ALL:
1022 str->append(STRING_WITH_LEN(" FOR SYSTEM_TIME ALL"));
1023 break;
1024 }
1025}
1026
1027static
1028Item* period_get_condition(THD *thd, TABLE_LIST *table, SELECT_LEX *select,

Callers 6

change_to_use_tmp_fieldsFunction · 0.45
print_table_arrayFunction · 0.45
print_item_listMethod · 0.45
print_set_clauseMethod · 0.45
print_hintsMethod · 0.45

Calls 15

print_joinFunction · 0.85
Lex_ident_tableClass · 0.85
list_strlex_printFunction · 0.85
get_explainable_cmd_typeFunction · 0.85
get_explainable_cmd_nameFunction · 0.85
print_list_itemFunction · 0.85
first_selectMethod · 0.80
first_select_lexMethod · 0.80
print_leaf_tablesMethod · 0.80
append_identifierFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected