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

Function gen_put_segment

src/gpre/languages/cob.cpp:2835–2864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2833//
2834
2835static void gen_put_segment( const act* action)
2836{
2837 const blb* blob;
2838
2839 if (action->act_flags & ACT_sql)
2840 {
2841 blob = (blb*) action->act_request->req_blobs;
2842 const ref* from = action->act_object;
2843 printa(names[COLUMN], false, "MOVE %s TO %s%d",
2844 from->ref_value, names[isc_a_pos], blob->blb_buff_ident);
2845 printa(names[COLUMN], false, "MOVE %s TO %s%d",
2846 from->ref_null_value, names[isc_a_pos], blob->blb_len_ident);
2847 }
2848 else
2849 blob = (blb*) action->act_object;
2850
2851 TEXT buffer[128];
2852 strcpy(buffer, PUT_SEG_CALL_TEMPLATE);
2853 sprintf(output_buffer,
2854 buffer,
2855 names[COLUMN],
2856 ISC_PUT_SEGMENT,
2857 status_vector(action),
2858 BY_REF, names[isc_a_pos], blob->blb_ident,
2859 BY_VALUE, names[isc_a_pos], blob->blb_len_ident, END_VALUE,
2860 BY_REF, names[isc_a_pos], blob->blb_buff_ident, names[isc_status_pos]);
2861 COB_print_buffer(output_buffer, true);
2862
2863 set_sqlcode(action);
2864}
2865
2866
2867//____________________________________________________________

Callers 1

COB_actionFunction · 0.70

Calls 4

COB_print_bufferFunction · 0.85
printaFunction · 0.70
status_vectorFunction · 0.70
set_sqlcodeFunction · 0.70

Tested by

no test coverage detected