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

Function copy_field_as_string

sql/sql_show.cc:6953–6959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6951
6952
6953static inline void copy_field_as_string(Field *to_field, Field *from_field)
6954{
6955 char buff[MAX_FIELD_WIDTH];
6956 String tmp_str(buff, sizeof(buff), system_charset_info);
6957 from_field->val_str(&tmp_str);
6958 to_field->store(tmp_str.ptr(), tmp_str.length(), system_charset_info);
6959}
6960
6961
6962/**

Callers 1

store_schema_procFunction · 0.85

Calls 4

val_strMethod · 0.45
storeMethod · 0.45
ptrMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected