MCPcopy Create free account
hub / github.com/apache/cloudberry / mbvalidate

Function mbvalidate

src/fe_utils/mbprint.c:391–405  ·  view source on GitHub ↗

* Encoding validation: delete any unvalidatable characters from the string * * This seems redundant with existing functionality elsewhere? */

Source from the content-addressed store, hash-verified

389 * This seems redundant with existing functionality elsewhere?
390 */
391unsigned char *
392mbvalidate(unsigned char *pwcs, int encoding)
393{
394 if (encoding == PG_UTF8)
395 mb_utf_validate(pwcs);
396 else
397 {
398 /*
399 * other encodings needing validation should add their own routines
400 * here
401 */
402 }
403
404 return pwcs;
405}

Callers 2

printTableAddHeaderFunction · 0.85
printTableAddCellFunction · 0.85

Calls 1

mb_utf_validateFunction · 0.85

Tested by

no test coverage detected