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

Function makeReverse

src/jrd/SysFunction.cpp:1828–1847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826
1827
1828void makeReverse(DataTypeUtilBase*, const SysFunction* function, dsc* result,
1829 int argsCount, const dsc** args)
1830{
1831 fb_assert(argsCount == function->minArgCount);
1832
1833 const dsc* value = args[0];
1834
1835 if (value->isNull())
1836 {
1837 result->makeNullString();
1838 return;
1839 }
1840
1841 if (value->isBlob())
1842 *result = *value;
1843 else
1844 result->makeVarying(value->getStringLength(), value->getTextType());
1845
1846 result->setNullable(value->isNullable());
1847}
1848
1849
1850void makeRound(DataTypeUtilBase*, const SysFunction* function, dsc* result,

Callers

nothing calls this directly

Calls 8

makeNullStringMethod · 0.80
isBlobMethod · 0.80
makeVaryingMethod · 0.80
getStringLengthMethod · 0.80
getTextTypeMethod · 0.80
setNullableMethod · 0.80
isNullMethod · 0.45
isNullableMethod · 0.45

Tested by

no test coverage detected