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

Method Item_int

sql/item.cc:1111–1119  ·  view source on GitHub ↗

Create an item from a string we KNOW points to a valid longlong. str_arg does not necessary has to be a \\0 terminated string. This is always 'signed'. Unsigned values are created with Item_uint() */

Source from the content-addressed store, hash-verified

1109 This is always 'signed'. Unsigned values are created with Item_uint()
1110*/
1111Item_int::Item_int(const char *str_arg, uint length)
1112{
1113 char *end_ptr= (char*) str_arg + length;
1114 int error;
1115 value= my_strtoll10(str_arg, &end_ptr, &error);
1116 max_length= (uint) (end_ptr - str_arg);
1117 item_name.copy(str_arg, max_length);
1118 fixed= 1;
1119}
1120
1121
1122my_decimal *Item_int::val_decimal(my_decimal *decimal_value)

Callers

nothing calls this directly

Calls 2

my_strtoll10Function · 0.85
copyMethod · 0.45

Tested by

no test coverage detected