| 3942 | } |
| 3943 | |
| 3944 | void 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 | //-------------------- |
no test coverage detected