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

Method getResultTextType

src/jrd/DataTypeUtil.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59USHORT DataTypeUtilBase::getResultTextType(const dsc* value1, const dsc* value2)
60{
61 const USHORT cs1 = value1->getCharSet();
62 const USHORT cs2 = value2->getCharSet();
63
64 const USHORT ttype1 = value1->getTextType();
65 const USHORT ttype2 = value2->getTextType();
66
67 if (cs1 == CS_NONE || cs2 == CS_BINARY)
68 return ttype2;
69
70 if (cs1 == CS_ASCII && cs2 != CS_NONE)
71 return ttype2;
72
73 return ttype1;
74}
75
76
77// This function is made to determine a output descriptor from a given list

Callers 2

makeOverlayFunction · 0.80
makeReplaceFunction · 0.80

Calls 2

getTextTypeMethod · 0.80
getCharSetMethod · 0.45

Tested by

no test coverage detected