MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / nameToMetaCharSet

Method nameToMetaCharSet

src/jrd/Attachment.cpp:351–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349
350
351MetaName Jrd::Attachment::nameToMetaCharSet(thread_db* tdbb, const MetaName& name)
352{
353 if (att_charset == CS_METADATA || att_charset == CS_NONE)
354 return name;
355
356 UCHAR buffer[MAX_SQL_IDENTIFIER_SIZE];
357 ULONG len = INTL_convert_bytes(tdbb, CS_METADATA, buffer, MAX_SQL_IDENTIFIER_LEN,
358 att_charset, (const BYTE*) name.c_str(), name.length(), ERR_post);
359 buffer[len] = '\0';
360
361 return MetaName((const char*) buffer);
362}
363
364
365MetaName Jrd::Attachment::nameToUserCharSet(thread_db* tdbb, const MetaName& name)

Callers 2

yylexAuxMethod · 0.80
transaction_optionsFunction · 0.80

Calls 4

INTL_convert_bytesFunction · 0.85
MetaNameClass · 0.70
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected