| 3294 | // |
| 3295 | |
| 3296 | static void gen_store( const act* action, int column) |
| 3297 | { |
| 3298 | const gpre_req* request = action->act_request; |
| 3299 | align(column); |
| 3300 | gen_compile(action, column); |
| 3301 | |
| 3302 | if (action->act_error || (action->act_flags & ACT_sql)) |
| 3303 | { |
| 3304 | make_ok_test(action, request, column); |
| 3305 | column += INDENT; |
| 3306 | if (action->act_error) |
| 3307 | begin(column); |
| 3308 | } |
| 3309 | |
| 3310 | // Initialize any blob fields |
| 3311 | |
| 3312 | TEXT name[MAX_REF_SIZE]; |
| 3313 | gpre_port* port = request->req_primary; |
| 3314 | |
| 3315 | for (const ref* reference = port->por_references; reference; reference = reference->ref_next) |
| 3316 | { |
| 3317 | const gpre_fld* field = reference->ref_field; |
| 3318 | if (field->fld_flags & FLD_blob) |
| 3319 | printa(column, "%s = fbBlobNull;", gen_name(name, reference, true)); |
| 3320 | } |
| 3321 | } |
| 3322 | |
| 3323 | |
| 3324 | //____________________________________________________________ |
no test coverage detected