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

Function gen_blob_close

src/gpre/obj_cxx.cpp:924–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922//
923
924static void gen_blob_close( const act* action, USHORT column)
925{
926 const TEXT* pattern1 = "fb_%IFcancel%ELclose%EN_blob (%V1, &%BH);";
927
928 if (action->act_error)
929 begin(column);
930
931 const blb* blob;
932 if (action->act_flags & ACT_sql)
933 {
934 column = gen_cursor_close(action, action->act_request, column);
935 blob = (blb*) action->act_request->req_blobs;
936 }
937 else
938 blob = (blb*) action->act_object;
939
940 PAT args;
941 args.pat_blob = blob;
942 args.pat_vector1 = status_vector(action);
943 args.pat_condition = (action->act_type == ACT_blob_cancel);
944 PATTERN_expand(column, pattern1, &args);
945
946 if (action->act_flags & ACT_sql)
947 {
948 endp(column);
949 column -= INDENT;
950 }
951
952 set_sqlcode(action, column);
953}
954
955
956//____________________________________________________________

Callers 1

OBJ_CXX_actionFunction · 0.70

Calls 6

PATTERN_expandFunction · 0.85
beginFunction · 0.70
gen_cursor_closeFunction · 0.70
status_vectorFunction · 0.70
endpFunction · 0.70
set_sqlcodeFunction · 0.70

Tested by

no test coverage detected