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

Method FormatValue

storage/connect/value.cpp:1208–1216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1206/***********************************************************************/
1207template <class TYPE>
1208bool TYPVAL<TYPE>::FormatValue(PVAL vp, PCSZ fmt)
1209{
1210 // This function is wrong and should never be called
1211 assert(false);
1212 char *buf = (char*)vp->GetTo_Val(); // Not big enough
1213 int n = snprintf(buf, vp->GetValLen() + 1, fmt, Tval);
1214
1215 return (n > vp->GetValLen());
1216} // end of FormatValue
1217
1218/***********************************************************************/
1219/* TYPVAL SetFormat function (used to set SELECT output format). */

Callers 1

MakeRecordMethod · 0.80

Calls 3

GetTo_ValMethod · 0.80
GetValLenMethod · 0.80
htrcFunction · 0.70

Tested by

no test coverage detected