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

Method getString

src/dsql/StmtNodes.cpp:3944–3961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3942}
3943
3944void ExecStatementNode::getString(thread_db* tdbb, Request* request, const ValueExprNode* node,
3945 string& str, bool useAttCS) const
3946{
3947 MoveBuffer buffer;
3948 UCHAR* p = NULL;
3949 int len = 0;
3950 const dsc* dsc = node ? EVL_expr(tdbb, request, node) : NULL;
3951
3952 if (dsc && !(request->req_flags & req_null))
3953 {
3954 const Jrd::Attachment* att = tdbb->getAttachment();
3955 len = MOV_make_string2(tdbb, dsc, (useAttCS ? att->att_charset : dsc->getTextType()),
3956 &p, buffer, false);
3957 }
3958
3959 str.assign((char*) p, len);
3960 str.trim();
3961}
3962
3963
3964//--------------------

Callers 6

dsqlPassMethod · 0.45
genBlrMethod · 0.45
dsqlMatchMethod · 0.45
MAKE_str_constantFunction · 0.45
transformStringMethod · 0.45
parseMethod · 0.45

Calls 6

EVL_exprFunction · 0.85
MOV_make_string2Function · 0.85
getTextTypeMethod · 0.80
getAttachmentMethod · 0.45
assignMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected