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

Function is_binary_field

client/mysql.cc:3985–4000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3983/* Used to determine if we should invoke print_as_hex for this field */
3984
3985static bool
3986is_binary_field(MYSQL_FIELD *field)
3987{
3988 if ((field->charsetnr == 63) &&
3989 (field->type == MYSQL_TYPE_BIT ||
3990 field->type == MYSQL_TYPE_BLOB ||
3991 field->type == MYSQL_TYPE_LONG_BLOB ||
3992 field->type == MYSQL_TYPE_MEDIUM_BLOB ||
3993 field->type == MYSQL_TYPE_TINY_BLOB ||
3994 field->type == MYSQL_TYPE_VAR_STRING ||
3995 field->type == MYSQL_TYPE_STRING ||
3996 field->type == MYSQL_TYPE_VARCHAR ||
3997 field->type == MYSQL_TYPE_GEOMETRY))
3998 return 1;
3999 return 0;
4000}
4001
4002
4003/* Print binary value as hex literal (0x ...) */

Callers 5

print_table_dataFunction · 0.85
print_table_data_htmlFunction · 0.85
print_table_data_xmlFunction · 0.85
print_tab_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected