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

Function gen_store

src/gpre/obj_cxx.cpp:3296–3321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3294//
3295
3296static 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//____________________________________________________________

Callers 1

OBJ_CXX_actionFunction · 0.70

Calls 6

alignFunction · 0.70
gen_compileFunction · 0.70
make_ok_testFunction · 0.70
beginFunction · 0.70
printaFunction · 0.70
gen_nameFunction · 0.70

Tested by

no test coverage detected