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

Method composeDesc

src/dsql/make.cpp:126–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void DsqlDescMaker::composeDesc(dsc* desc,
127 USHORT dtype,
128 SSHORT scale,
129 SSHORT subType,
130 FLD_LENGTH length,
131 SSHORT charsetId,
132 SSHORT collationId,
133 bool nullable)
134{
135 desc->clear();
136 desc->dsc_dtype = static_cast<UCHAR>(dtype);
137 desc->dsc_scale = static_cast<SCHAR>(scale);
138 desc->dsc_sub_type = subType;
139 desc->dsc_length = length;
140 desc->dsc_flags = nullable ? DSC_nullable : 0;
141
142 if (desc->isText() || desc->isBlob())
143 desc->setTextType(INTL_CS_COLL_TO_TTYPE(charsetId, collationId));
144}
145
146
147LiteralNode* MAKE_const_slong(SLONG value)

Callers

nothing calls this directly

Calls 4

isTextMethod · 0.80
isBlobMethod · 0.80
setTextTypeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected