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

Function gen_put_segment

src/gpre/languages/rmc.cpp:2932–2959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2930//
2931
2932static void gen_put_segment( const act* action)
2933{
2934 const blb* blob;
2935
2936 if (action->act_flags & ACT_sql)
2937 {
2938 blob = (blb*) action->act_request->req_blobs;
2939 const ref* from = action->act_object;
2940 printa(names[COLUMN], false, "MOVE %s TO %s%d",
2941 from->ref_value, names[isc_a_pos], blob->blb_buff_ident);
2942 printa(names[COLUMN], false, "MOVE %s TO %s%d",
2943 from->ref_null_value, names[isc_a_pos], blob->blb_len_ident);
2944 }
2945 else
2946 blob = (blb*) action->act_object;
2947
2948
2949 sprintf(output_buffer, PUT_SEG_CALL_TEMPLATE,
2950 names[COLUMN],
2951 ISC_PUT_SEGMENT,
2952 status_vector(action),
2953 names[isc_a_pos], blob->blb_ident,
2954 names[isc_a_pos], blob->blb_len_ident,
2955 names[isc_a_pos], blob->blb_buff_ident, names[isc_status_pos]);
2956 RMC_print_buffer(output_buffer, true);
2957
2958 set_sqlcode(action);
2959}
2960
2961
2962//____________________________________________________________

Callers 1

RMC_actionFunction · 0.70

Calls 4

RMC_print_bufferFunction · 0.85
printaFunction · 0.70
status_vectorFunction · 0.70
set_sqlcodeFunction · 0.70

Tested by

no test coverage detected