| 124 | } |
| 125 | |
| 126 | void 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 | |
| 147 | LiteralNode* MAKE_const_slong(SLONG value) |
nothing calls this directly
no test coverage detected