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

Function setTextType

src/yvalve/why.cpp:1410–1422  ·  view source on GitHub ↗

Set charset info in SQLVAR according to legacy rules

Source from the content-addressed store, hash-verified

1408
1409// Set charset info in SQLVAR according to legacy rules
1410static void setTextType(XSQLVAR* var, unsigned charSet)
1411{
1412 switch(var->sqltype & ~1)
1413 {
1414 case SQL_VARYING:
1415 case SQL_TEXT:
1416 var->sqlsubtype = charSet;
1417 break;
1418 case SQL_BLOB:
1419 var->sqlscale = charSet;
1420 break;
1421 }
1422}
1423
1424static int sqldaTruncateString(char* buffer, FB_SIZE_T size, const char* s)
1425{

Callers 5

makeBlobMethod · 0.85
makeNullStringMethod · 0.85
makeTextMethod · 0.85
makeVaryingMethod · 0.85
sqldaDescribeParametersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected