| 2930 | // |
| 2931 | |
| 2932 | static 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 | //____________________________________________________________ |
no test coverage detected