| 1573 | |
| 1574 | |
| 1575 | void makeEncodeHex(DataTypeUtilBase* dataTypeUtil, const SysFunction* function, dsc* result, int argsCount, const dsc** args) |
| 1576 | { |
| 1577 | fb_assert(argsCount == 1); |
| 1578 | if (args[0]->isBlob()) |
| 1579 | result->makeBlob(isc_blob_text, ttype_ascii); |
| 1580 | else if (args[0]->isText()) |
| 1581 | { |
| 1582 | unsigned len = args[0]->getStringLength() * 2; |
| 1583 | if (len <= MAX_VARY_COLUMN_SIZE) |
| 1584 | result->makeVarying(len, ttype_ascii); |
| 1585 | else |
| 1586 | result->makeBlob(isc_blob_text, ttype_ascii); |
| 1587 | } |
| 1588 | else |
| 1589 | status_exception::raise(Arg::Gds(isc_tom_strblob)); |
| 1590 | |
| 1591 | result->setNullable(args[0]->isNullable()); |
| 1592 | } |
| 1593 | |
| 1594 | |
| 1595 | void makeCrypt(DataTypeUtilBase* dataTypeUtil, const SysFunction* function, dsc* result, |
nothing calls this directly
no test coverage detected