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

Method mark_as_const

sql/sql_string.h:197–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 inline void length(uint32 len) { str_length=len ; }
196 inline bool is_empty() const { return (str_length == 0); }
197 inline void mark_as_const() { Alloced_length= 0;}
198 inline const char *ptr() const { return Ptr; }
199 inline char *c_ptr()
200 {

Callers 3

initMethod · 0.80
val_strMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected