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

Method getResultBlobSubType

src/jrd/DataTypeUtil.cpp:41–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40
41SSHORT DataTypeUtilBase::getResultBlobSubType(const dsc* value1, const dsc* value2)
42{
43 const SSHORT subType1 = value1->getBlobSubType();
44 const SSHORT subType2 = value2->getBlobSubType();
45
46 if (value1->isUnknown())
47 return subType2;
48
49 if (value2->isUnknown())
50 return subType1;
51
52 if (subType2 == isc_blob_untyped) // binary
53 return subType2;
54
55 return subType1;
56}
57
58
59USHORT DataTypeUtilBase::getResultTextType(const dsc* value1, const dsc* value2)

Callers 2

makeOverlayFunction · 0.80
makeReplaceFunction · 0.80

Calls 2

getBlobSubTypeMethod · 0.80
isUnknownMethod · 0.45

Tested by

no test coverage detected