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

Method getSubType

src/yvalve/why.cpp:339–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339int SQLDAMetadata::getSubType(CheckStatusWrapper* status, unsigned index)
340{
341 if (offsets)
342 {
343 fb_assert(count > index);
344 return offsets[index].subType;
345 }
346 if (sqlda)
347 {
348 fb_assert(sqlda->sqld > (int) index);
349 ISC_SHORT sqltype = sqlda->sqlvar[index].sqltype & ~1;
350 if (sqltype == SQL_VARYING || sqltype == SQL_TEXT)
351 return sqlda->sqlvar[index].sqlsubtype == CS_BINARY ? fb_text_subtype_binary : fb_text_subtype_text;
352 return sqlda->sqlvar[index].sqlsubtype;
353 }
354
355 fb_assert(false);
356 return 0;
357}
358
359unsigned SQLDAMetadata::getLength(CheckStatusWrapper* status, unsigned index)
360{

Callers 3

buildBlrMethod · 0.45
parseMetadataMethod · 0.45
sqldaDescribeParametersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected