| 922 | // |
| 923 | |
| 924 | static 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 | //____________________________________________________________ |
no test coverage detected