MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / neg_arguments

Method neg_arguments

sql/item_cmpfunc.cc:1095–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1093
1094
1095void Item_cond::neg_arguments(THD *thd)
1096{
1097 List_iterator<Item> li(list);
1098 Item *item;
1099 while ((item= li++)) /* Apply not transformation to the arguments */
1100 {
1101 Item *new_item= item->neg_transformer(thd);
1102 if (!new_item)
1103 {
1104 if (!(new_item= new Item_func_not(item)))
1105 return; // Fatal OEM error
1106 }
1107 (void) li.replace(new_item);
1108 }
1109}
1110
1111
1112/**

Callers

nothing calls this directly

Calls 2

neg_transformerMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected